summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui')
-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']: