aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-11-30 00:55:25 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-18 15:04:58 +0000
commit567f072ff260614cde3da220a40a95d5a8b9ab92 (patch)
treeef2005320badcadd7872998126df78dea65aadfb
parent1b34e3c0075b4bb8a4800fef3e12c3f39743973c (diff)
downloadbitbake-567f072ff260614cde3da220a40a95d5a8b9ab92.tar.gz
bitbake-567f072ff260614cde3da220a40a95d5a8b9ab92.tar.bz2
bitbake-567f072ff260614cde3da220a40a95d5a8b9ab92.zip
toaster: some recipe events do not include packages
Allow for "SinglePackageInfo" events that do not include package data, for example OPKGN equal 'lib32-*' or 'lib64-*'. [YOCTO #12204] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/buildinfohelper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index e451c630..524a5b09 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -719,7 +719,11 @@ class ORMWrapper(object):
def save_build_package_information(self, build_obj, package_info, recipes,
built_package):
- # assert isinstance(build_obj, Build)
+ # assert isinstance(build_obj, Build)
+
+ if not 'PN' in package_info.keys():
+ # no package data to save (e.g. 'OPKGN'="lib64-*"|"lib32-*")
+ return None
# create and save the object
pname = package_info['PKG']