1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

sstate/utility-tasks: Ensure do_clean functions correctly and removes shared state

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-27 12:33:58 +01:00
parent 5c7531f78c
commit 4b2a355a31
2 changed files with 10 additions and 4 deletions
+5 -4
View File
@@ -188,23 +188,24 @@ def sstate_clean(ss, d):
bb.utils.unlockfile(lock)
SCENEFUNCS += "sstate_cleanall"
CLEANFUNCS += "sstate_cleanall"
python sstate_cleanall() {
import fnmatch
bb.note("Removing %s from staging" % bb.data.getVar('PN', d, True))
bb.note("Removing shared state for package %s" % bb.data.getVar('PN', d, True))
manifest_dir = bb.data.getVar('PSTAGE2_MANIFESTS', d, True)
manifest_pattern = bb.data.expand("manifest-${PN}.*", d)
if not os.path.exists(manifest_dir):
return
for manifest in (os.listdir(manifest_dir)):
if fnmatch.fnmatch(manifest, manifest_pattern):
sstate_clean_manifest(manifest_dir + "/" + manifest, d)
}
do_clean[postfuncs] += "sstate_cleanall"
do_clean[dirs] += "${PSTAGE2_MANIFESTS}"
def sstate_package(ss, d):
import oe.path