From 7544ef4c4955782692189371803da07549f63d15 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 27 Feb 2024 12:16:11 +0100 Subject: meta/lib/oe/sstatesig.py: do not error out if sstate files fail on os.stat() There's an ongoing issue with the autobuilder NFS: https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6463/steps/14/logs/stdio The file entry exists, but os.stat returns a 'file not found; error. It's not clear how and why such entries appear, but they do produce printdiff test failures and should not be relevant in context of the printdiff. (From OE-Core rev: 7547816bb2fd7028a46b7494ddd3ccf437979850) Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/lib/oe/sstatesig.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index a46e5502ab..5950b3e0e6 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -431,7 +431,10 @@ def find_siginfo(pn, taskname, taskhashlist, d): actual_hashval = get_hashval(fullpath) if actual_hashval in hashfiles: continue - hashfiles[actual_hashval] = {'path':fullpath, 'sstate':True, 'time':get_time(fullpath)} + try: + hashfiles[actual_hashval] = {'path':fullpath, 'sstate':True, 'time':get_time(fullpath)} + except FileNotFoundError: + bb.warn("Could not obtain mtime for {}".format(fullpath)) return hashfiles -- cgit v1.2.3-54-g00ecf