mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
lib/sstatesig/find_siginfo: raise an error instead of returning None when obtaining mtime
Suppressing the error and returning None can result in a delayed failure: https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6254/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6262/steps/14/logs/stdio It is not clear why the os.stat() error occurs to begin with (it shouldn't), so rather than adding further workarounds, let's get diagnostics at the source first, so we understand what is going on. (From OE-Core rev: 35483d4756ab53805507f72a9a0edb3f83759694) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
871b000464
commit
4675bbb757
@@ -357,10 +357,7 @@ def find_siginfo(pn, taskname, taskhashlist, d):
|
|||||||
return siginfo.rpartition('.')[2]
|
return siginfo.rpartition('.')[2]
|
||||||
|
|
||||||
def get_time(fullpath):
|
def get_time(fullpath):
|
||||||
try:
|
return os.stat(fullpath).st_mtime
|
||||||
return os.stat(fullpath).st_mtime
|
|
||||||
except OSError:
|
|
||||||
return None
|
|
||||||
|
|
||||||
# First search in stamps dir
|
# First search in stamps dir
|
||||||
localdata = d.createCopy()
|
localdata = d.createCopy()
|
||||||
|
|||||||
Reference in New Issue
Block a user