Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sstate: Fix an error handling the taskname
@ 2014-04-04 17:05 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-04-04 17:05 UTC (permalink / raw)
  To: openembedded-core

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




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-04 17:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 17:05 [PATCH] sstate: Fix an error handling the taskname Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox