Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-06-05 16:28:17 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-06-05 16:49:31 +0300
commit47d6f46225c3cecf3afc204a80798c8674059455 (patch)
treed81a9bed542ebcd33cefe14010723be9cec95bea
parent3614c2f94f024d8fc7d414ff4a921729453d0f27 (diff)
Handle ','-separated build-depends: in hint as well
-rwxr-xr-xcalm/hint.py5
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'], ',')