summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-01-02 15:50:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-05 12:04:52 +0000
commit4675bbb757a4755e80914afb6840a640f292fc08 (patch)
tree3b96546ef73c05afa99f134e3fdd2e7819122811 /meta/lib/oe
parent871b000464ad56e19406b028e154f60296d1b41f (diff)
downloadpoky-4675bbb757a4755e80914afb6840a640f292fc08.tar.gz
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/sstatesig.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 79d1de1747..1b4380f21b 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -357,10 +357,7 @@ def find_siginfo(pn, taskname, taskhashlist, d):
357 return siginfo.rpartition('.')[2] 357 return siginfo.rpartition('.')[2]
358 358
359 def get_time(fullpath): 359 def get_time(fullpath):
360 try: 360 return os.stat(fullpath).st_mtime
361 return os.stat(fullpath).st_mtime
362 except OSError:
363 return None
364 361
365 # First search in stamps dir 362 # First search in stamps dir
366 localdata = d.createCopy() 363 localdata = d.createCopy()