[CONSOLIDATED,PULL,07/20] base.bbclass: add cleansstate task between clean and cleanall

Submitted by Saul Wold on June 6, 2011, 6:44 a.m.

Details

Message ID 9238ac3d52148e87a394ccd2911a1dc61912cd54.1307342214.git.sgw@linux.intel.com
State New, archived
Headers show

Commit Message

Saul Wold June 6, 2011, 6:44 a.m.
From: Martin Jansa <martin.jansa@gmail.com>

* 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(-)

Patch hide | download patch | download mbox

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