summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-02-10 14:26:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 12:23:57 -0700
commit6fc246232aeacfacdf5e873e84be1485ce2c22e0 (patch)
tree902303187732942653c5cf1f6ab5e2f7291be6a9 /bitbake/lib/bb
parent3d0bb418a08aa96dd57c15b695385775ce3bddc8 (diff)
downloadpoky-6fc246232aeacfacdf5e873e84be1485ce2c22e0.tar.gz
bitbake: toaster: mark dependency packages
We need to mark the package entries that are created solely for dependency tracking purposes. In order to avoid altering the database schema, we mark the dependency targets with size = -1, since this is not a valid size anyway and makes for easy filtering. [YOCTO #5803] (Bitbake rev: d11ed273dd6c520b16e9ccfe79476f340006a55d) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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 4c9c96b1bc..a0f10952f0 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -239,7 +239,11 @@ class ORMWrapper(object):
239 size = package_info['FILES_INFO'][path] ) 239 size = package_info['FILES_INFO'][path] )
240 240
241 def _po_byname(p): 241 def _po_byname(p):
242 return Package.objects.get_or_create(build = build_obj, name = p)[0] 242 pkg, created = Package.objects.get_or_create(build = build_obj, name = p)
243 if created:
244 pkg.size = -1
245 pkg.save()
246 return pkg
243 247
244 # save soft dependency information 248 # save soft dependency information
245 if 'RDEPENDS' in package_info and package_info['RDEPENDS']: 249 if 'RDEPENDS' in package_info and package_info['RDEPENDS']: