mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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] (From OE-Core rev: 5413e56205a9f48d8c3e419d8da468c60f5aa348) 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>
This commit is contained in:
committed by
Richard Purdie
parent
3e49cee7e8
commit
3c8da7d5bc
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user