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

login
register
mail settings
Submitter Richard Purdie
Date May 30, 2014, 11:23 p.m.
Message ID <1401492226.31309.72.camel@ted>
Download mbox | patch
Permalink /patch/73037/
State New
Headers show

Comments

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

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