summaryrefslogtreecommitdiffstats
path: root/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 21:53:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 21:56:38 +0100
commited74ea50043f6feb698c891e571feda2b9f8513d (patch)
tree3d71f2618cb76349c78cc5f987fa0a1fc82af68a /lib/bb/data_smart.py
parentea65ebf43525f173205183aa2fd5d8db303ffd4a (diff)
downloadbitbake-contrib-ed74ea50043f6feb698c891e571feda2b9f8513d.tar.gz
data_smart: Ensure variable flags are accounted for in config data hash
Currently if the flags set against a variable in the base data store change, it doesn't automatically trigger a reparse when it really should. For example with the blacklist class setting: PNBLACKLIST[qemu] = "bar" PNBLACKLIST[bash] = "foo" will not trigger a reparse if only one entry is changed and a blacklisted recipe can still be built. I did consider using BB_SIGNATURE_EXCLUDE_FLAGS in here however it doesn't make sense, we want to trigger a reparse when any of the flags change too (which is different to the sstate signatures which we wouldn't want to change in those cases). [YOCTO #4627] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r--lib/bb/data_smart.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 2fd8ccdeb..fa7811e6f 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -738,6 +738,12 @@ class DataSmart(MutableMapping):
value = d.getVar(key, False) or ""
data.update({key:value})
+ varflags = d.getVarFlags(key)
+ if not varflags:
+ continue
+ for f in varflags:
+ data.update({'%s[%s]' % (key, f):varflags[f]})
+
for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]:
bb_list = d.getVar(key, False) or []
bb_list.sort()