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/lib | |
parent | 0d0279a88141616e08515916f4a0e6d9a3e326dd (diff) | |
download | poky-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/lib')
-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): | |||
279 | 279 | ||
280 | return r | 280 | return r |
281 | 281 | ||
282 | def join_deps(deps): | 282 | def join_deps(deps, commasep=True): |
283 | """ | 283 | """ |
284 | Take the result from explode_dep_versions and generate a dependency string | 284 | Take the result from explode_dep_versions and generate a dependency string |
285 | """ | 285 | """ |
@@ -289,7 +289,10 @@ def join_deps(deps): | |||
289 | result.append(dep + " (" + deps[dep] + ")") | 289 | result.append(dep + " (" + deps[dep] + ")") |
290 | else: | 290 | else: |
291 | result.append(dep) | 291 | result.append(dep) |
292 | return ", ".join(result) | 292 | if commasep: |
293 | return ", ".join(result) | ||
294 | else: | ||
295 | return " ".join(result) | ||
293 | 296 | ||
294 | def _print_trace(body, line): | 297 | def _print_trace(body, line): |
295 | """ | 298 | """ |