diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sstate.bbclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 91f209a9cf..7e688a8840 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -258,10 +258,15 @@ def sstate_clean(ss, d): | |||
258 | bb.utils.unlockfile(lock) | 258 | bb.utils.unlockfile(lock) |
259 | 259 | ||
260 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] | 260 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] |
261 | extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info') | ||
261 | oe.path.remove(stfile) | 262 | oe.path.remove(stfile) |
262 | oe.path.remove(stfile + "_setscene") | 263 | oe.path.remove(stfile + "_setscene") |
263 | oe.path.remove(stfile + ".*") | 264 | if extrainf: |
264 | oe.path.remove(stfile + "_setscene" + ".*") | 265 | oe.path.remove(stfile + ".*" + extrainf) |
266 | oe.path.remove(stfile + "_setscene" + ".*" + extrainf) | ||
267 | else: | ||
268 | oe.path.remove(stfile + ".*") | ||
269 | oe.path.remove(stfile + "_setscene" + ".*") | ||
265 | 270 | ||
266 | CLEANFUNCS += "sstate_cleanall" | 271 | CLEANFUNCS += "sstate_cleanall" |
267 | 272 | ||