summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-04-11 17:40:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-19 10:27:18 +0100
commit6bc4a0311cc3cd3f696d9dbca8fc0ef4e3bc340b (patch)
treec18473c9ff8647ce5765fc82f10dbb1ee034a039
parentcd495307d233b81ebeb43198d13bbd4b3ad7407f (diff)
downloadopenembedded-core-6bc4a0311cc3cd3f696d9dbca8fc0ef4e3bc340b.tar.gz
openembedded-core-6bc4a0311cc3cd3f696d9dbca8fc0ef4e3bc340b.tar.bz2
openembedded-core-6bc4a0311cc3cd3f696d9dbca8fc0ef4e3bc340b.zip
toaster.bbclass: do not fail on non-existent files
Toaster may look up inexistent file paths in the build history for packages that have been referenced but not built. This triggers a failure, and this patch recovers by deleting the reference to the non-built packages. [YOCTO #6063] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toaster.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index d2fa82d730..4244b2ca7f 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -288,7 +288,15 @@ python toaster_buildhistory_dump() {
for pname in images[target]:
if not pname in allpkgs:
- allpkgs[pname] = _toaster_load_pkgdatafile("%s/runtime-reverse/" % pkgdata_dir, pname)
+ try:
+ pkgdata = _toaster_load_pkgdatafile("%s/runtime-reverse/" % pkgdata_dir, pname)
+ except IOError as err:
+ if err.errno == 2:
+ # We expect this e.g. for RRECOMMENDS that are unsatisfied at runtime
+ continue
+ else:
+ raise
+ allpkgs[pname] = pkgdata
data = { 'pkgdata' : allpkgs, 'imgdata' : images, 'filedata' : files }