diff options
-rw-r--r-- | meta/classes/sstate.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index efb0096c70..9f059a04a0 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -423,8 +423,9 @@ def sstate_clean_cachefile(ss, d): | |||
423 | import oe.path | 423 | import oe.path |
424 | 424 | ||
425 | sstatepkgfile = d.getVar('SSTATE_PATHSPEC') + "*_" + ss['task'] + ".tgz*" | 425 | sstatepkgfile = d.getVar('SSTATE_PATHSPEC') + "*_" + ss['task'] + ".tgz*" |
426 | bb.note("Removing %s" % sstatepkgfile) | 426 | if d.getVarFlag('do_%s' % ss['task'], 'task'): |
427 | oe.path.remove(sstatepkgfile) | 427 | bb.note("Removing %s" % sstatepkgfile) |
428 | oe.path.remove(sstatepkgfile) | ||
428 | 429 | ||
429 | def sstate_clean_cachefiles(d): | 430 | def sstate_clean_cachefiles(d): |
430 | for task in (d.getVar('SSTATETASKS') or "").split(): | 431 | for task in (d.getVar('SSTATETASKS') or "").split(): |