]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate.bbclass: avoid deleting unrelated stamp files
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 28 Feb 2011 13:16:41 +0000 (13:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Mar 2011 13:17:26 +0000 (13:17 +0000)
Avoid deleting stamp files whose names contain the current task's name as a
substring. This will be especially important for example if do_package_write
is ever made an sstate task (as it would previously have deleted the stamps
here for do_package_write_ipk etc.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/sstate.bbclass

index 4d8443be40c8c3492919f27967058282f9860ed3..d367faaa7b135b237c8fefcdc058d7d163d8d49f 100644 (file)
@@ -241,7 +241,9 @@ def sstate_clean(ss, d):
     for lock in locks:
         bb.utils.unlockfile(lock)
 
-    oe.path.remove(d.getVar("STAMP", True) + ".do_" + ss['task'] + "*")
+    stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
+    oe.path.remove(stfile)
+    oe.path.remove(stfile + ".*")
 
 CLEANFUNCS += "sstate_cleanall"