]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Fix an error handling the taskname
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Apr 2014 17:05:43 +0000 (18:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Apr 2014 23:14:29 +0000 (00:14 +0100)
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>
meta/classes/sstate.bbclass

index f761909f3daa103a11fb2e182e8104fb3e0c8353..f371fda6f2c7f4385286b7ecebcf33942ccd1ee5 100644 (file)
@@ -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()