diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 17:35:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 17:37:42 +0000 |
commit | dee7decf87dfa8cb966fe40846d27f3e6ab1846b (patch) | |
tree | 535c4adbfaf467d3e3e9cf32edb1a2396b8fb73b /lib | |
parent | 61cf01c5c236b4218f40cfae7c059c2b86765dbd (diff) | |
download | bitbake-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')
-rw-r--r-- | lib/bb/build.py | 7 |
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) |