[oe-commits] Richard Purdie : sstate: Fix an error handling the taskname

git at git.openembedded.org git at git.openembedded.org
Fri Apr 4 23:06:06 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 3c912102fd9ea6b360f1af209da21e8f27b845c0
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3c912102fd9ea6b360f1af209da21e8f27b845c0

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Apr  4 18:05:43 2014 +0100

sstate: Fix an error handling the taskname

Looking at the code, its clear 'task' is meant not to have the do_ prefix,
however its also clear it can be left in through some code paths.

One result of this can be files not being cleaned from the sysroot correctly.

Fix this.

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

---

 meta/classes/sstate.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index f761909..f371fda 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -98,6 +98,7 @@ def sstate_state_fromvars(d, task = None):
     name = task
     if task.startswith("do_"):
         name = task[3:]
+        task = name
     inputs = (d.getVarFlag("do_" + task, 'sstate-inputdirs', True) or "").split()
     outputs = (d.getVarFlag("do_" + task, 'sstate-outputdirs', True) or "").split()
     plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs', True) or "").split()



More information about the Openembedded-commits mailing list