diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-12-01 15:30:14 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-18 15:05:23 +0000 |
commit | 0c7aee74003dbd29da7e5e35cab466c8f858cad3 (patch) | |
tree | 3c46e197919313dfd51113ab4a99192c84ff9897 | |
parent | bfec25108d8e00a8ca2c93859a03082bea19789c (diff) | |
download | bitbake-0c7aee74003dbd29da7e5e35cab466c8f858cad3.tar.gz |
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.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py index e451c630d..524a5b094 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'] |