* [PATCH] sstatesig: Ensure we return all matches for find_sigdata
@ 2013-12-19 9:38 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-12-19 9:38 UTC (permalink / raw)
To: openembedded-core
When the hashes to find isn't specified we need to return matches from both
the sstate cache and the local stamps directory regardless of how many we've
found so far. If we don't do this, we can miss stamps and the comparison is
less accurate/incorrect.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 329c84d..b13d11c 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -128,7 +128,7 @@ def find_siginfo(pn, taskname, taskhashlist, d):
else:
filedates[fullpath] = os.stat(fullpath).st_mtime
- if len(filedates) < 2 and not foundall:
+ if not taskhashlist or (len(filedates) < 2 and not foundall):
# That didn't work, look in sstate-cache
hashes = taskhashlist or ['*']
localdata = bb.data.createCopy(d)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-19 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 9:38 [PATCH] sstatesig: Ensure we return all matches for find_sigdata Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox