From patchwork Mon Jan 7 17:57:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] lib/bb/build.py: 'deps' may not always exist in a few corner cases. Date: Mon, 07 Jan 2013 17:57:23 -0000 From: Mark Hatle X-Patchwork-Id: 42247 Message-Id: <1357581443-27929-1-git-send-email-mark.hatle@windriver.com> To: With a small set of recipes (1), and all system dependencies assume_provided, we may end up with no parent dependencies. So we check if 'deps' was defined instead of always assuming it exists. Signed-off-by: Mark Hatle --- 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 43790a6..2f6a61f 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)