Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: add cleansstate task between clean and cleanall
@ 2011-06-02 18:56 Martin Jansa
  2011-06-02 19:19 ` Koen Kooi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin Jansa @ 2011-06-02 18:56 UTC (permalink / raw)
  To: openembedded-core

* sometimes it's usefull to remove only sstate cache and keep downloaded sources for rebuild

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/base.bbclass |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 8f4ef1e..6f0484e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -408,10 +408,13 @@ def check_gcc3(data):
 	
 	return False
 
-addtask cleanall after do_clean
-python do_cleanall() {
+addtask cleansstate after do_clean
+python do_cleansstate() {
         sstate_clean_cachefiles(d)
+}
 
+addtask cleanall after do_cleansstate
+python do_cleanall() {
         src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split()
         if len(src_uri) == 0:
             return
-- 
1.7.5.3




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

end of thread, other threads:[~2011-06-06 17:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02 18:56 [PATCH] base.bbclass: add cleansstate task between clean and cleanall Martin Jansa
2011-06-02 19:19 ` Koen Kooi
2011-06-02 21:51   ` Khem Raj
2011-06-03  5:43 ` Darren Hart
2011-06-06 17:06 ` Saul Wold

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