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:38:23 +0000 |
commit | 39eb22bbc479ff84aad069f8821e9be026e8c1bc (patch) | |
tree | 333f58a01996d3c29d7516be07c561544de17caa /bitbake | |
parent | 1d1884570b4e0d78ba443597105b4222484bc506 (diff) | |
download | poky-39eb22bbc479ff84aad069f8821e9be026e8c1bc.tar.gz |
bitbake: 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.
(Bitbake rev: dee7decf87dfa8cb966fe40846d27f3e6ab1846b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 43790a658a..2f6a61f4b0 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -591,9 +591,10 @@ def add_tasks(tasklist, d): | |||
591 | getTask('noexec') | 591 | getTask('noexec') |
592 | getTask('umask') | 592 | getTask('umask') |
593 | task_deps['parents'][task] = [] | 593 | task_deps['parents'][task] = [] |
594 | for dep in flags['deps']: | 594 | if 'deps' in flags: |
595 | dep = data.expand(dep, d) | 595 | for dep in flags['deps']: |
596 | task_deps['parents'][task].append(dep) | 596 | dep = data.expand(dep, d) |
597 | task_deps['parents'][task].append(dep) | ||
597 | 598 | ||
598 | # don't assume holding a reference | 599 | # don't assume holding a reference |
599 | data.setVar('_task_deps', task_deps, d) | 600 | data.setVar('_task_deps', task_deps, d) |