summaryrefslogtreecommitdiffstats
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:05:29 +0000
commitdac484bee175ca325033e0ddf94296cf10ea6373 (patch)
tree9c26e7e690d1d33701eb7e1d21ab6e9304cd83a5
parent4422d911200bdb3e85d6c2e7ce287573a8007e87 (diff)
downloadpoky-dac484bee175ca325033e0ddf94296cf10ea6373.tar.gz
bitbake: 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] (Bitbake rev: 567f072ff260614cde3da220a40a95d5a8b9ab92) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index e451c630d4..524a5b0942 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -719,7 +719,11 @@ class ORMWrapper(object):
719 719
720 def save_build_package_information(self, build_obj, package_info, recipes, 720 def save_build_package_information(self, build_obj, package_info, recipes,
721 built_package): 721 built_package):
722 # assert isinstance(build_obj, Build) 722 # assert isinstance(build_obj, Build)
723
724 if not 'PN' in package_info.keys():
725 # no package data to save (e.g. 'OPKGN'="lib64-*"|"lib32-*")
726 return None
723 727
724 # create and save the object 728 # create and save the object
725 pname = package_info['PKG'] 729 pname = package_info['PKG']