diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-05 16:28:17 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-05 16:49:31 +0300 |
commit | 47d6f46225c3cecf3afc204a80798c8674059455 (patch) | |
tree | d81a9bed542ebcd33cefe14010723be9cec95bea | |
parent | 3614c2f94f024d8fc7d414ff4a921729453d0f27 (diff) |
Handle ','-separated build-depends: in hint as well
-rwxr-xr-x | calm/hint.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calm/hint.py b/calm/hint.py index 1256d44..01ef085 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -309,7 +309,10 @@ def hint_file_parse(fn, kind): hints['requires'] = split_trim_sort_join(hints['requires'], None, ' ') if 'build-depends' in hints: - hints['build-depends'] = split_trim_sort_join(hints['build-depends'], None, ', ') + if ',' in hints['build-depends']: + hints['build-depends'] = split_trim_sort_join(hints['build-depends'], ',') + else: + hints['build-depends'] = split_trim_sort_join(hints['build-depends'], None, ', ') if 'depends' in hints: hints['depends'] = split_trim_sort_join(hints['depends'], ',') |