mirror of
https://git.yoctoproject.org/poky
synced 2026-04-07 23:02:22 +02:00
sstate: don't silently handle all exceptions in sstate_checkhashes
If checkstatus returns an exception we should silently handle FetchError, as this means the fetch failed for 'normal' reasons such as file not found. However, other exceptions may be raised, and these should be made visible. (From OE-Core rev: f16803718a19ace7b582c5b73924fe3112502927) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 50d99faf88a1d82cbd939b9bd6e33ebed2b1ffd8) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4b863f98e2
commit
3f2e26f122
@@ -950,10 +950,11 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
|
||||
found.add(tid)
|
||||
if tid in missed:
|
||||
missed.remove(tid)
|
||||
except:
|
||||
except bb.fetch2.FetchError as e:
|
||||
missed.add(tid)
|
||||
bb.debug(2, "SState: Unsuccessful fetch test for %s" % srcuri)
|
||||
pass
|
||||
bb.debug(2, "SState: Unsuccessful fetch test for %s (%s)" % (srcuri, e))
|
||||
except Exception as e:
|
||||
bb.error("SState: cannot test %s: %s" % (srcuri, e))
|
||||
if len(tasklist) >= min_tasks:
|
||||
bb.event.fire(bb.event.ProcessProgress(msg, len(tasklist) - thread_worker.tasks.qsize()), d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user