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-05-18 18:43:00 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-05-18 20:21:08 +0300
commit7bee1947e21d774a88ad7c9849b26d868d7daf72 (patch)
treea234460000c9bed249299ff7d8a95cb584b30bb1
parentc16989024207a8acb298e17382e93fa8ef1dc48b (diff)
Store build-depends: comma separated
Store build-depends: in a comma separated form, so package linkification on that header works correctly.
-rwxr-xr-xcalm/hint.py2
-rwxr-xr-xcalm/package.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/calm/hint.py b/calm/hint.py
index 6e709f0..e96d3e8 100755
--- a/calm/hint.py
+++ b/calm/hint.py
@@ -306,7 +306,7 @@ 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, ' ')
+ hints['build-depends'] = split_trim_sort_join(hints['build-depends'], None, ', ')
if 'depends' in hints:
hints['depends'] = split_trim_sort_join(hints['depends'], ',')
diff --git a/calm/package.py b/calm/package.py
index fc6d6b7..e705803 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -1126,7 +1126,7 @@ def write_setup_ini(args, packages, arch):
# cygwin package names into package names. For the moment,
# we don't have the information to do that, so filter them
# all out.
- bd = [atom for atom in bd.split() if '(' not in atom]
+ bd = [atom for atom in bd.split(', ') if '(' not in atom]
if bd:
print("build-depends: %s" % ', '.join(bd), file=f)