Openembedded Core Discussions
 help / color / mirror / Atom feed
* sstate.bbclass: Ensure machine specific stamps are only wiped for the current task
@ 2011-10-06 14:19 Richard Purdie
  2011-10-06 20:57 ` Koen Kooi
  2011-10-09 11:25 ` Koen Kooi
  0 siblings, 2 replies; 14+ messages in thread
From: Richard Purdie @ 2011-10-06 14:19 UTC (permalink / raw)
  To: openembedded-core

sstate was being a little too ethusiastic about removing stamp files and
was removing stamp files for other machines when it shouldn't have been.

This patch teaches sstate about machine specific stamp extensions and
allows it to only remove the current task's stampfiles.

Based on a patch from Phil Blundell <philb@gnu.org> with some tweaks
from me.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index eee04ab..6abf55b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -259,10 +259,15 @@ 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')
     oe.path.remove(stfile)
     oe.path.remove(stfile + "_setscene")
-    oe.path.remove(stfile + ".*")
-    oe.path.remove(stfile + "_setscene" + ".*")
+    if extrainf:
+        oe.path.remove(stfile + ".*" + extrainf)
+        oe.path.remove(stfile + "_setscene" + ".*" + extrainf)
+    else:
+        oe.path.remove(stfile + ".*")
+        oe.path.remove(stfile + "_setscene" + ".*")
 
 CLEANFUNCS += "sstate_cleanall"
 





^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-11-04  9:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 14:19 sstate.bbclass: Ensure machine specific stamps are only wiped for the current task Richard Purdie
2011-10-06 20:57 ` Koen Kooi
2011-10-09 11:25 ` Koen Kooi
2011-10-09 18:10   ` Martin Jansa
2011-10-09 18:11     ` Koen Kooi
2011-10-10 11:45       ` Martin Jansa
2011-10-10 14:16         ` Richard Purdie
2011-10-10 14:37           ` Koen Kooi
2011-10-10 14:41             ` Martin Jansa
2011-10-10 15:17               ` Richard Purdie
2011-10-10 14:17         ` Richard Purdie
2011-11-03 16:33           ` Martin Jansa
2011-11-03 22:08             ` Martin Jansa
2011-11-04  9:32               ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox