diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-04-17 16:43:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-19 13:34:04 +0100 |
commit | a0eb3ebbc82133ad239a752a4a85d154be31a311 (patch) | |
tree | 818384104332fcfb51747e067b454886f31e8376 /meta/lib | |
parent | 7047d02619547401c313de8c6972a7a0af77e2bc (diff) | |
download | openembedded-core-a0eb3ebbc82133ad239a752a4a85d154be31a311.tar.gz openembedded-core-a0eb3ebbc82133ad239a752a4a85d154be31a311.tar.bz2 openembedded-core-a0eb3ebbc82133ad239a752a4a85d154be31a311.zip |
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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
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, 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): if format == "file": tmp_output = "" for line in tuple(output.split('\n')): + if not line.strip(): + continue pkg, pkg_file, pkg_arch = line.split() full_path = os.path.join(self.rootfs_dir, pkg_arch, pkg_file) if os.path.exists(full_path): |