diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-19 09:38:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-20 12:26:26 +0000 |
commit | b6b6d923a6f81c96590d091cd9eebd1bd2031045 (patch) | |
tree | 33f11f57875f07a585d154a5ac2f88bf8977ff9d /meta/lib | |
parent | d32d08fd4891bc6998349875eb2deb36bb7322c8 (diff) | |
download | poky-b6b6d923a6f81c96590d091cd9eebd1bd2031045.tar.gz |
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.
(From OE-Core rev: 08a074e11e2d517b81ca71fd9bda65297bb015a7)
(From OE-Core rev: 04fc682af7c1657b1c9f37b66a78c4ffc8066e24)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 329c84d366..b13d11c055 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -128,7 +128,7 @@ def find_siginfo(pn, taskname, taskhashlist, d): | |||
128 | else: | 128 | else: |
129 | filedates[fullpath] = os.stat(fullpath).st_mtime | 129 | filedates[fullpath] = os.stat(fullpath).st_mtime |
130 | 130 | ||
131 | if len(filedates) < 2 and not foundall: | 131 | if not taskhashlist or (len(filedates) < 2 and not foundall): |
132 | # That didn't work, look in sstate-cache | 132 | # That didn't work, look in sstate-cache |
133 | hashes = taskhashlist or ['*'] | 133 | hashes = taskhashlist or ['*'] |
134 | localdata = bb.data.createCopy(d) | 134 | localdata = bb.data.createCopy(d) |