Skip to contentSkip to conversation

sstate: Fix an error handling the taskname

PATCH New Richard Purdie 1 participant 1 message Apr 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

meta/classes/sstate.bbclass +1 -0
index f761909..f371fda 100644
@@ -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()