aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 17:35:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 17:37:42 +0000
commitdee7decf87dfa8cb966fe40846d27f3e6ab1846b (patch)
tree535c4adbfaf467d3e3e9cf32edb1a2396b8fb73b /lib/bb/build.py
parent61cf01c5c236b4218f40cfae7c059c2b86765dbd (diff)
downloadbitbake-dee7decf87dfa8cb966fe40846d27f3e6ab1846b.tar.gz
build.py: Fix traceback when there are no dependencies
A recipe with no dependencies results in a traceback (e.g. all in ASSUME_PROVIDED). This shouldn't happen and this patch fixes it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 43790a658..2f6a61f4b 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -591,9 +591,10 @@ def add_tasks(tasklist, d):
getTask('noexec')
getTask('umask')
task_deps['parents'][task] = []
- for dep in flags['deps']:
- dep = data.expand(dep, d)
- task_deps['parents'][task].append(dep)
+ if 'deps' in flags:
+ for dep in flags['deps']:
+ dep = data.expand(dep, d)
+ task_deps['parents'][task].append(dep)
# don't assume holding a reference
data.setVar('_task_deps', task_deps, d)