summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-04 18:05:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-05 00:14:29 +0100
commit3c912102fd9ea6b360f1af209da21e8f27b845c0 (patch)
treef63598e1e27ded4d1f6b7aa1bf3bc990721f5d31
parent99fadf2ff9f4379121fde6477383e7574519fba4 (diff)
downloadopenembedded-core-3c912102fd9ea6b360f1af209da21e8f27b845c0.tar.gz
openembedded-core-3c912102fd9ea6b360f1af209da21e8f27b845c0.tar.bz2
openembedded-core-3c912102fd9ea6b360f1af209da21e8f27b845c0.zip
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@linuxfoundation.org>
-rw-r--r--meta/classes/sstate.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index f761909f3d..f371fda6f2 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()