diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-25 16:31:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-02 12:41:44 +0000 |
commit | c6c31b5c58a502703879243ca37585e058e09c71 (patch) | |
tree | 46689331496a634bdc41cd764c83f73594bf1fda /lib/bb | |
parent | a7aa0415bdaa458a941004bf8dd8bbfeddd6ef5a (diff) | |
download | bitbake-c6c31b5c58a502703879243ca37585e058e09c71.tar.gz |
bitbake/utils.py: Allow join_deps to return a list that isn't comman separated
(From Poky rev: 2069a29a8256bc94e6c1137da78d7b129a8cd4e8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index b2f8bb6f8..44419d8f2 100644 --- a/lib/bb/utils.py +++ b/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): """ |