diff options
| -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 eee04ab3f5..6abf55bb14 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
| @@ -259,10 +259,15 @@ def sstate_clean(ss, d): | |||
| 259 | bb.utils.unlockfile(lock) | 259 | bb.utils.unlockfile(lock) |
| 260 | 260 | ||
| 261 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] | 261 | stfile = d.getVar("STAMP", True) + ".do_" + ss['task'] |
| 262 | extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info') | ||
| 262 | oe.path.remove(stfile) | 263 | oe.path.remove(stfile) |
| 263 | oe.path.remove(stfile + "_setscene") | 264 | oe.path.remove(stfile + "_setscene") |
| 264 | oe.path.remove(stfile + ".*") | 265 | if extrainf: |
| 265 | oe.path.remove(stfile + "_setscene" + ".*") | 266 | oe.path.remove(stfile + ".*" + extrainf) |
| 267 | oe.path.remove(stfile + "_setscene" + ".*" + extrainf) | ||
| 268 | else: | ||
| 269 | oe.path.remove(stfile + ".*") | ||
| 270 | oe.path.remove(stfile + "_setscene" + ".*") | ||
| 266 | 271 | ||
| 267 | CLEANFUNCS += "sstate_cleanall" | 272 | CLEANFUNCS += "sstate_cleanall" |
| 268 | 273 | ||
