From 4a97b83d1d48a5df58733058d41b665b9230198f Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 21 Feb 2013 15:23:35 +0000 Subject: build.py: avoid deleting taint files when writing stamps The stamp cleaning process that occurs before writing out new stamps for a task was deleting taint files as well. This resulted in tasks that were forcibly re-executed using the -f or -C command line options to have their previous output restored from shared state when called upon a second time, because the taint value was no longer incorporated into the task signature and thus it was reverting to its previous value. This also affected the kernel menuconfig command in OE-Core. Note that the taint file *is* still deleted when doing -c clean, which is the desired behaviour. Fixes [YOCTO #3919]. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- lib/bb/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bb/build.py b/lib/bb/build.py index 43790a658..1bda5d0da 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -505,10 +505,13 @@ def make_stamp(task, d, file_name = None): """ cleanmask = stamp_cleanmask_internal(task, d, file_name) for mask in cleanmask: - # Preserve sigdata files in the stamps directory for name in glob.glob(mask): + # Preserve sigdata files in the stamps directory if "sigdata" in name: continue + # Preserve taint files in the stamps directory + if name.endswith('.taint'): + continue os.unlink(name) stamp = stamp_internal(task, d, file_name) -- cgit 1.2.3-korg