From dbd66fc8080eacd6c20df9d6528a929b9070fe35 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 17 Dec 2009 21:39:08 +0000 Subject: bitbake/BBHandler: Only add do_ prefix to tasks if its not already present Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/parse_py/BBHandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 76b917ca5..915db214f 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) -- cgit v1.2.3