diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-02-05 15:25:18 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:50:32 +0000 |
commit | 8bf5d80e3502a71fdda688aace0799b47ae19b3b (patch) | |
tree | e92eb6ca5a0680253f0bf97d98024f89210c640b /meta | |
parent | 19c538f57c8fa7c566e88a6dbe13ea4826d4f26c (diff) | |
download | openembedded-core-8bf5d80e3502a71fdda688aace0799b47ae19b3b.tar.gz openembedded-core-8bf5d80e3502a71fdda688aace0799b47ae19b3b.tar.bz2 openembedded-core-8bf5d80e3502a71fdda688aace0799b47ae19b3b.zip |
lib/oe/package_manager.py: check that package list is not empty
If we're just attempting to install packages and the package list is
empty, just return.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index d3e8a0885b..dfcb0ef783 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -496,7 +496,7 @@ class RpmPM(PackageManager): def install(self, pkgs, attempt_only=False): bb.note("Installing the following packages: %s" % ' '.join(pkgs)) - if len(pkgs) == 0: + if attempt_only and len(pkgs) == 0: return pkgs = self._pkg_translate_oe_to_smart(pkgs, attempt_only) @@ -907,6 +907,9 @@ class OpkgPM(PackageManager): self.deploy_dir_unlock() def install(self, pkgs, attempt_only=False): + if attempt_only and len(pkgs) == 0: + return + cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs)) os.environ['D'] = self.target_rootfs @@ -1164,6 +1167,9 @@ class DpkgPM(PackageManager): self.deploy_dir_unlock() def install(self, pkgs, attempt_only=False): + if attempt_only and len(pkgs) == 0: + return + os.environ['APT_CONFIG'] = self.apt_conf_file cmd = "%s %s install --force-yes --allow-unauthenticated %s" % \ |