diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2009-10-17 19:05:57 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2009-10-17 19:22:59 +0100 |
commit | fc2e3ba87c7f685b47ac090d3a04dcac7c6737bd (patch) | |
tree | 35fc6b206a51be378d22c013445c4cdcb6556fe3 /lib/bb/cache.py | |
parent | 6252c7d5c1c7123d16fc3c7db2edc6751420f12c (diff) | |
download | bitbake-fc2e3ba87c7f685b47ac090d3a04dcac7c6737bd.tar.gz |
cache.py: Add check for leakage of SRCREVINACTION variable (from Poky)
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'lib/bb/cache.py')
-rw-r--r-- | lib/bb/cache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 05f0d4fde..d30d57d33 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -331,6 +331,9 @@ class Cache: if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']: bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn) del cache_data[fn] + elif 'PV' in self.depends_cache[fn] and 'SRCREVINACTION' in self.depends_cache[fn]['PV']: + bb.msg.error(bb.msg.domain.Cache, "Not caching %s as it had SRCREVINACTION in PV. Please report this bug" % fn) + del cache_data[fn] p = pickle.Pickler(file(self.cachefile, "wb" ), -1 ) p.dump([cache_data, version_data]) @@ -346,6 +349,8 @@ class Cache: pn = self.getVar('PN', file_name, True) pe = self.getVar('PE', file_name, True) or "0" pv = self.getVar('PV', file_name, True) + if 'SRCREVINACTION' in pv: + bb.note("Found SRCREVINACTION in PV (%s) or %s. Please report this bug." % (pv, file_name)) pr = self.getVar('PR', file_name, True) dp = int(self.getVar('DEFAULT_PREFERENCE', file_name, True) or "0") depends = bb.utils.explode_deps(self.getVar("DEPENDS", file_name, True) or "") |