summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-17 21:39:08 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-18 11:41:44 +0000
commitdbd66fc8080eacd6c20df9d6528a929b9070fe35 (patch)
tree56d3fc5b3a13e378bdd2b3bb77fe965afe7c8968 /bitbake/lib
parent29ae46a86601313206896992afb77b35c31785da (diff)
downloadopenembedded-core-dbd66fc8080eacd6c20df9d6528a929b9070fe35.tar.gz
openembedded-core-dbd66fc8080eacd6c20df9d6528a929b9070fe35.tar.bz2
openembedded-core-dbd66fc8080eacd6c20df9d6528a929b9070fe35.zip
bitbake/BBHandler: Only add do_ prefix to tasks if its not already present
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 76b917ca5d..915db214f5 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -329,7 +329,8 @@ def feeder(lineno, s, fn, root, d):
after = m.group("after")
if func is None:
return
- var = "do_" + func
+ if func[:3] != "do_":
+ var = "do_" + func
data.setVarFlag(var, "task", 1, d)