Patchwork sstate.bbclass: Ensure we expand stamp-extra-info

login
register
mail settings
Submitter Richard Purdie
Date Nov. 21, 2011, 3:24 p.m.
Message ID <1321889068.18926.14.camel@ted>
Download mbox | patch
Permalink /patch/15193/
State Accepted
Commit 9f743b5033177216fe0e1d3e43ba831f356df08e
Headers show

Comments

Richard Purdie - Nov. 21, 2011, 3:24 p.m.
Without this change we can end up looking for <stamp>.${MACHINE}
instead of the expected expanded value.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index a777c79..951caa3 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -259,7 +259,7 @@  def sstate_clean(ss, d):
             bb.utils.unlockfile(lock)
 
     stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
-    extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info')
+    extrainf = d.getVarFlag("do_" + ss['task'], 'stamp-extra-info', True)
     oe.path.remove(stfile)
     oe.path.remove(stfile + "_setscene")
     if extrainf: