]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: make do_cleanup really working
authorKevin Tian <kevin.tian@intel.com>
Mon, 30 Aug 2010 06:27:24 +0000 (14:27 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 31 Aug 2010 15:37:49 +0000 (16:37 +0100)
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>
meta/classes/sstate.bbclass

index 08c22293ccce74c40e9456489e79d29433494978..7d253a7dc5228d21dff23de8953f1976832cf988 100644 (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