From 2069a29a8256bc94e6c1137da78d7b129a8cd4e8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 25 Feb 2011 16:31:40 +0000 Subject: bitbake/utils.py: Allow join_deps to return a list that isn't comman separated Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 7 +++++-- 1 file 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): """ -- cgit v1.2.3-54-g00ecf