sstatesig: Ensure we return all matches for find_sigdata

Submitted by Richard Purdie on Dec. 19, 2013, 9:38 a.m.


Message ID 1387445898.6402.62.camel@ted
State Accepted
Commit 04fc682af7c1657b1c9f37b66a78c4ffc8066e24
Headers show

Commit Message

Richard Purdie Dec. 19, 2013, 9:38 a.m.
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 <>

Patch hide | download patch | download mbox

diff --git a/meta/lib/oe/ b/meta/lib/oe/
index 329c84d..b13d11c 100644
--- a/meta/lib/oe/
+++ b/meta/lib/oe/
@@ -128,7 +128,7 @@  def find_siginfo(pn, taskname, taskhashlist, d):
             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 =