mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake/cache.py: Add warnings for leakage of SRCREVINACTION magic value
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
8138603680
commit
bec200b38d
@@ -331,6 +331,9 @@ class Cache:
|
|||||||
if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_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)
|
bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)
|
||||||
del cache_data[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 = pickle.Pickler(file(self.cachefile, "wb" ), -1 )
|
||||||
p.dump([cache_data, version_data])
|
p.dump([cache_data, version_data])
|
||||||
@@ -346,6 +349,8 @@ class Cache:
|
|||||||
pn = self.getVar('PN', file_name, True)
|
pn = self.getVar('PN', file_name, True)
|
||||||
pe = self.getVar('PE', file_name, True) or "0"
|
pe = self.getVar('PE', file_name, True) or "0"
|
||||||
pv = self.getVar('PV', file_name, True)
|
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)
|
pr = self.getVar('PR', file_name, True)
|
||||||
dp = int(self.getVar('DEFAULT_PREFERENCE', file_name, True) or "0")
|
dp = int(self.getVar('DEFAULT_PREFERENCE', file_name, True) or "0")
|
||||||
depends = bb.utils.explode_deps(self.getVar("DEPENDS", file_name, True) or "")
|
depends = bb.utils.explode_deps(self.getVar("DEPENDS", file_name, True) or "")
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ class Cache:
|
|||||||
bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)
|
bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)
|
||||||
del cache_data[fn]
|
del cache_data[fn]
|
||||||
elif 'PV' in self.depends_cache[fn] and 'SRCREVINACTION' in self.depends_cache[fn]['PV']:
|
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 - need to trace this bug" % fn)
|
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]
|
del cache_data[fn]
|
||||||
|
|
||||||
p = pickle.Pickler(file(self.cachefile, "wb" ), -1 )
|
p = pickle.Pickler(file(self.cachefile, "wb" ), -1 )
|
||||||
@@ -349,6 +349,8 @@ class Cache:
|
|||||||
pn = self.getVar('PN', file_name, True)
|
pn = self.getVar('PN', file_name, True)
|
||||||
pe = self.getVar('PE', file_name, True) or "0"
|
pe = self.getVar('PE', file_name, True) or "0"
|
||||||
pv = self.getVar('PV', file_name, True)
|
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)
|
pr = self.getVar('PR', file_name, True)
|
||||||
dp = int(self.getVar('DEFAULT_PREFERENCE', file_name, True) or "0")
|
dp = int(self.getVar('DEFAULT_PREFERENCE', file_name, True) or "0")
|
||||||
depends = bb.utils.explode_deps(self.getVar("DEPENDS", file_name, True) or "")
|
depends = bb.utils.explode_deps(self.getVar("DEPENDS", file_name, True) or "")
|
||||||
|
|||||||
Reference in New Issue
Block a user