diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-30 14:42:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 07:40:23 +0100 |
commit | b460afb12bb16a4b56d800c953c5f5c7da0bff84 (patch) | |
tree | ce46bb098475f8432739802325fa62346dea82d6 /meta/lib | |
parent | 8715beff7b910209627da3726b18b7abf801b557 (diff) | |
download | openembedded-core-b460afb12bb16a4b56d800c953c5f5c7da0bff84.tar.gz openembedded-core-b460afb12bb16a4b56d800c953c5f5c7da0bff84.tar.bz2 openembedded-core-b460afb12bb16a4b56d800c953c5f5c7da0bff84.zip |
lib/oe/package_manager: Handle empty package list in opkg case
If you build buildtools-tarball with opkg as the package manager, it
passes in an empty target packages list and fails.
This allows the code to cope with an empty package list (in sync
with the rpm backend).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index c51e88be58..630b957ba9 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1512,7 +1512,7 @@ class OpkgPM(PackageManager): self.deploy_dir_unlock() def install(self, pkgs, attempt_only=False): - if attempt_only and len(pkgs) == 0: + if not pkgs: return cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs)) |