mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: Add bb.utils.join_deps to handle creation of dependency strings with versions
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -138,6 +138,18 @@ def explode_dep_versions(s):
|
|||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
def join_deps(deps):
|
||||||
|
"""
|
||||||
|
Take the result from explode_dep_versions and generate a dependency string
|
||||||
|
"""
|
||||||
|
result = []
|
||||||
|
for dep in deps:
|
||||||
|
if deps[dep]:
|
||||||
|
result.append(dep + " (" + deps[dep] + ")")
|
||||||
|
else:
|
||||||
|
result.append(dep)
|
||||||
|
return ", ".join(result)
|
||||||
|
|
||||||
def _print_trace(body, line):
|
def _print_trace(body, line):
|
||||||
"""
|
"""
|
||||||
Print the Environment of a Text Body
|
Print the Environment of a Text Body
|
||||||
|
|||||||
Reference in New Issue
Block a user