aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 56577dabe1..c8f139b192 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -287,6 +287,17 @@ def join_deps(deps):
result.append(dep)
return ", ".join(result)
+def extend_deps(dest, src):
+ """
+ Extend the results from explode_dep_versions by appending all of the items
+ in the second list, avoiding duplicates.
+ """
+ for dep in src:
+ if dep not in dest:
+ dest[dep] = src[dep]
+ elif dest[dep] != src[dep]:
+ dest[dep] = src[dep]
+
def _print_trace(body, line):
"""
Print the Environment of a Text Body