diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-28 17:23:34 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-28 17:23:58 -0700 |
commit | 0b0317966d031354f13299db12629ac789235434 (patch) | |
tree | 012d6ab915990897149dc9bd6f77656e3e259bce /lib/bb/build.py | |
parent | e9b07b8e84f117c942dd37478001f4b1b5b3b6a3 (diff) | |
download | bitbake-0b0317966d031354f13299db12629ac789235434.tar.gz |
build: fix empty function execution
- If the function is empty *or* unset, don't exec it.
- If the function is unset, warn.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r-- | lib/bb/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index 03b0b1713..4c4946de0 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -129,8 +129,9 @@ def exec_func(func, d, dirs = None, logfile = NULL): """Execute an BB 'function'""" body = data.getVar(func, d) - if body is None: - logger.warn("Function %s doesn't exist", func) + if not body: + if body is None: + logger.warn("Function %s doesn't exist", func) return flags = data.getVarFlags(func, d) |