diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-08-30 14:27:24 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 16:37:49 +0100 |
commit | 03983e96475214facbdc2bcb79246a2f209c3935 (patch) | |
tree | a9dda9a94e9d7581d81520def22083b77cbb24b7 /meta | |
parent | 3aa6e464aa4697420712115216fa888d67d26a73 (diff) | |
download | openembedded-core-03983e96475214facbdc2bcb79246a2f209c3935.tar.gz openembedded-core-03983e96475214facbdc2bcb79246a2f209c3935.tar.bz2 openembedded-core-03983e96475214facbdc2bcb79246a2f209c3935.zip |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sstate.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 08c22293cc..7d253a7dc5 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -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 |