summaryrefslogtreecommitdiffstats
path: root/meta/classes
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-19 01:32:59 +0000
commit2176606ff7473c00c592e140d406105c06dc94e5 (patch)
treea0bad45a16b09a37c06a4482b8f55efc1110b9d3 /meta/classes
parent8c920456e4827ce77a05e4d536d06e75512d8aa5 (diff)
downloadpoky-2176606ff7473c00c592e140d406105c06dc94e5.tar.gz
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.) (From OE-Core rev: ea743ea30e2289733d27979e8ec921648342da0e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 24b492604d..ba0556f960 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -241,7 +241,9 @@ def sstate_clean(ss, d):
241 for lock in locks: 241 for lock in locks:
242 bb.utils.unlockfile(lock) 242 bb.utils.unlockfile(lock)
243 243
244 oe.path.remove(d.getVar("STAMP", True) + ".do_" + ss['task'] + "*") 244 stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
245 oe.path.remove(stfile)
246 oe.path.remove(stfile + ".*")
245 247
246CLEANFUNCS += "sstate_cleanall" 248CLEANFUNCS += "sstate_cleanall"
247 249