Skip to contentSkip to conversation

sstatesig: Ensure we return all matches for find_sigdata

PATCH New Richard Purdie 1 participant 1 message Dec 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstatesig: Ensure we return all matches for find_sigdata

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.

---

meta/lib/oe/sstatesig.py +1 -1
index 329c84d..b13d11c 100644
@@ -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)