summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-04-17 16:43:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-19 13:34:43 +0100
commitd92970f7c1cd659f2165542b7eeeb1e1efd9675f (patch)
treec4ee4c8e4431d4a1ca2d6a0fdd859b12ac63e0f3 /meta/lib/oe
parent9fc558721b2a9b662afe8423350523327994f75f (diff)
downloadpoky-d92970f7c1cd659f2165542b7eeeb1e1efd9675f.tar.gz
lib/oe/package_manager: avoid traceback with no packages
If you were using deb packaging, had buildhistory enabled and produced an SDK that contained no packages in one of the sysroots (such as with uninative-tarball) then the do_populate_sdk was failing with a python traceback because there were no fields to split in the output line. (From OE-Core rev: a0eb3ebbc82133ad239a752a4a85d154be31a311) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 0460415699..fffe11d150 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -446,6 +446,8 @@ class DpkgPkgsList(PkgsList):
446 if format == "file": 446 if format == "file":
447 tmp_output = "" 447 tmp_output = ""
448 for line in tuple(output.split('\n')): 448 for line in tuple(output.split('\n')):
449 if not line.strip():
450 continue
449 pkg, pkg_file, pkg_arch = line.split() 451 pkg, pkg_file, pkg_arch = line.split()
450 full_path = os.path.join(self.rootfs_dir, pkg_arch, pkg_file) 452 full_path = os.path.join(self.rootfs_dir, pkg_arch, pkg_file)
451 if os.path.exists(full_path): 453 if os.path.exists(full_path):