[bitbake-devel] [PATCH] lib/bb/build.py: 'deps' may not always exist in a few corner cases.
Mark Hatle
mark.hatle at windriver.com
Mon Jan 7 17:57:23 UTC 2013
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 <mark.hatle at windriver.com>
---
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)
--
1.7.3.4
More information about the bitbake-devel
mailing list