]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/sstate: fix taints being undone on execution of sstate tasks
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 24 Feb 2014 16:05:44 +0000 (16:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Feb 2014 16:18:57 +0000 (16:18 +0000)
The code here that deletes stamps was also deleting the taint files; so
forcing an sstate task with -f would force it to execute and then
because the taint file was deleted in the process, the next execution
would simply restore the output from sstate again. We need to exclude
the taint files just like we did in bb.build.make_stamp().

Fixes [YOCTO #5805].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index f7bd1174d8cfbe9998a136d24632047deba270ed..c4f437bde50893fac4e7ec192935abc0296b886d 100644 (file)
@@ -375,6 +375,9 @@ def sstate_clean(ss, d):
         # Keep the sigdata
         if ".sigdata." in stfile:
             continue
+        # Preserve taint files in the stamps directory
+        if stfile.endswith('.taint'):
+            continue
         if rm_stamp in stfile or rm_setscene in stfile or \
                 stfile.endswith(rm_nohash):
             oe.path.remove(stfile)