summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-30 14:42:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 07:43:35 +0100
commitc9ea0c619dd356c95cad511742ae1e19e571b37b (patch)
treefa6bee387e29289ee0fc8691572bac226b7a1743 /meta/lib
parentec504e0ff60d72352ef98dfead826ee5a991c46e (diff)
downloadpoky-c9ea0c619dd356c95cad511742ae1e19e571b37b.tar.gz
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). (From OE-Core rev: b460afb12bb16a4b56d800c953c5f5c7da0bff84) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/package_manager.py2
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):
1512 self.deploy_dir_unlock() 1512 self.deploy_dir_unlock()
1513 1513
1514 def install(self, pkgs, attempt_only=False): 1514 def install(self, pkgs, attempt_only=False):
1515 if attempt_only and len(pkgs) == 0: 1515 if not pkgs:
1516 return 1516 return
1517 1517
1518 cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs)) 1518 cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs))