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/classes | |
parent | 3aa6e464aa4697420712115216fa888d67d26a73 (diff) | |
download | poky-03983e96475214facbdc2bcb79246a2f209c3935.tar.gz |
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/classes')
-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() { | |||
196 | bb.note("Removing shared state for package %s" % bb.data.getVar('PN', d, True)) | 196 | bb.note("Removing shared state for package %s" % bb.data.getVar('PN', d, True)) |
197 | 197 | ||
198 | manifest_dir = bb.data.getVar('PSTAGE2_MANIFESTS', d, True) | 198 | manifest_dir = bb.data.getVar('PSTAGE2_MANIFESTS', d, True) |
199 | manifest_pattern = bb.data.expand("manifest-${PN}.*", d) | 199 | manifest_prefix = bb.data.getVar("PSTAGE2_MANFILEPREFIX", d, True) |
200 | manifest_pattern = os.path.basename(manifest_prefix) + ".*" | ||
200 | 201 | ||
201 | if not os.path.exists(manifest_dir): | 202 | if not os.path.exists(manifest_dir): |
202 | return | 203 | return |