summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/sstatesig.py
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-01-06 15:34:43 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-01-06 15:44:00 +0800
commita6dc870be391940e782eae4a86b0002e764a163a (patch)
tree24bd9625e3af338a1a0879ac9983ff6ed6215948 /meta/lib/oe/sstatesig.py
parent24f19fedb40d0af84beb8e9a6595ea06f09d4615 (diff)
downloadopenembedded-core-contrib-a6dc870be391940e782eae4a86b0002e764a163a.tar.gz
openembedded-core-contrib-a6dc870be391940e782eae4a86b0002e764a163a.tar.bz2
openembedded-core-contrib-a6dc870be391940e782eae4a86b0002e764a163a.zip
sstatesig.py: fix logic in find_siginfoChenQi/sstatesig-logic
For now, `bitbake-diffsig -t <recipe> <task>' doesn't work. This is caused by a small logic mistake in find_siginfo in sstatesig.py. The logic should be 'and' instead of 'or', otherwise, we will have both siginfo and sigdata files in filedates which have the same checksum. e.g. /buildarea2/chenqi/sstate-cache/fc/sstate:sysstat:armv5te-poky-linux-gnueabi:10.2.1:r0:armv5te:3:fc861bf371c1b843b2843a3415eb5ff3_install.tgz.siginfo /buildarea2/chenqi/poky/build-systemd/tmp/stamps/armv5te-poky-linux-gnueabi/sysstat/10.2.1-r0.do_install.sigdata.fc861bf371c1b843b2843a3415eb5ff3 So `bitbake-diffsig -t sysstat install' will output nothing even we actually have changed something in do_install task. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r--meta/lib/oe/sstatesig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index af7617ee61..c6c85b9acc 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -234,7 +234,7 @@ def find_siginfo(pn, taskname, taskhashlist, d):
except OSError:
continue
- if not taskhashlist or (len(filedates) < 2 and not foundall):
+ if not taskhashlist and (len(filedates) < 2 and not foundall):
# That didn't work, look in sstate-cache
hashes = taskhashlist or ['*']
localdata = bb.data.createCopy(d)