sstate: make do_cleanup really working

there's a bug in creating manifest_pattern, which means actually with
new sstate do_cleanup hasn't worked yet

We can use PSTAGE2_MANFILEPREFIX easily for this purpose.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Kevin Tian 2010-08-30 14:27:24 +08:00 committed by Richard Purdie
parent 3aa6e464aa
commit 03983e9647
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ python sstate_cleanall() {
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)
manifest_prefix = bb.data.getVar("PSTAGE2_MANFILEPREFIX", d, True)
manifest_pattern = os.path.basename(manifest_prefix) + ".*"
if not os.path.exists(manifest_dir):
return