mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
bitbake/utils.py: Allow join_deps to return a list that isn't comman separated
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0d0279a881
commit
2069a29a82
@@ -279,7 +279,7 @@ def explode_dep_versions(s):
|
|||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def join_deps(deps):
|
def join_deps(deps, commasep=True):
|
||||||
"""
|
"""
|
||||||
Take the result from explode_dep_versions and generate a dependency string
|
Take the result from explode_dep_versions and generate a dependency string
|
||||||
"""
|
"""
|
||||||
@@ -289,7 +289,10 @@ def join_deps(deps):
|
|||||||
result.append(dep + " (" + deps[dep] + ")")
|
result.append(dep + " (" + deps[dep] + ")")
|
||||||
else:
|
else:
|
||||||
result.append(dep)
|
result.append(dep)
|
||||||
return ", ".join(result)
|
if commasep:
|
||||||
|
return ", ".join(result)
|
||||||
|
else:
|
||||||
|
return " ".join(result)
|
||||||
|
|
||||||
def _print_trace(body, line):
|
def _print_trace(body, line):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user