diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-25 16:31:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-25 16:34:38 +0000 |
commit | 2069a29a8256bc94e6c1137da78d7b129a8cd4e8 (patch) | |
tree | fbd4529c9f2139ef0bd132804dc7b6f5c74491ef /bitbake | |
parent | 0d0279a88141616e08515916f4a0e6d9a3e326dd (diff) | |
download | openembedded-core-contrib-2069a29a8256bc94e6c1137da78d7b129a8cd4e8.tar.gz |
bitbake/utils.py: Allow join_deps to return a list that isn't comman separated
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index b2f8bb6f89..44419d8f2a 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -279,7 +279,7 @@ def explode_dep_versions(s): return r -def join_deps(deps): +def join_deps(deps, commasep=True): """ 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] + ")") else: result.append(dep) - return ", ".join(result) + if commasep: + return ", ".join(result) + else: + return " ".join(result) def _print_trace(body, line): """ |