summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-02-28 13:16:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-15 13:17:26 +0000
commitea743ea30e2289733d27979e8ec921648342da0e (patch)
tree8c7e60c235abc24698abb5425b9c72bc0a013144
parentfb88c2600d75302f8d55b710c364b4976ec0473b (diff)
downloadopenembedded-core-ea743ea30e2289733d27979e8ec921648342da0e.tar.gz
openembedded-core-ea743ea30e2289733d27979e8ec921648342da0e.tar.bz2
openembedded-core-ea743ea30e2289733d27979e8ec921648342da0e.zip
sstate.bbclass: avoid deleting unrelated stamp files
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>
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 4d8443be40..d367faaa7b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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"