]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstatesig: Ensure we return all matches for find_sigdata
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Dec 2013 09:38:18 +0000 (09:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Dec 2013 12:25:22 +0000 (12:25 +0000)
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.

(From OE-Core rev: 08a074e11e2d517b81ca71fd9bda65297bb015a7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sstatesig.py

index 329c84d366845a880695bf7d3828b4edb1c85aae..b13d11c055662740eac613bd0f804f20340f4772 100644 (file)
@@ -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)