From cbbf658041f5ea5978b8b094a225a51d2973d480 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 28 Feb 2011 13:16:41 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/sstate.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/classes/sstate.bbclass') 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" -- cgit v1.2.3-54-g00ecf