[bitbake-devel] siggen: Print warning about tainted tasks

Submitted by Richard Purdie on May 30, 2014, 11:23 p.m. | Patch ID: 73037


Message ID 1401492226.31309.72.camel@ted
State New
Headers show

Commit Message

Richard Purdie May 30, 2014, 11:23 p.m.
The big warning printed when people use -f is easily ignored/forgotten.
To raise user awareness, print a warning any time we include a tainted
stamp file into a build instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index a6d2859..933311c 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -190,6 +190,7 @@  class SignatureGeneratorBasic(SignatureGenerator):
         taint = self.read_taint(fn, task, dataCache.stamp[fn])
         if taint:
             data = data + taint
+            logger.warn("%s is tainted from a forced run" % k)
         h = hashlib.md5(data).hexdigest()
         self.taskhash[k] = h