diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-05-18 18:43:00 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-05-18 20:21:08 +0300 |
commit | 7bee1947e21d774a88ad7c9849b26d868d7daf72 (patch) | |
tree | a234460000c9bed249299ff7d8a95cb584b30bb1 | |
parent | c16989024207a8acb298e17382e93fa8ef1dc48b (diff) |
Store build-depends: comma separated
Store build-depends: in a comma separated form, so package linkification
on that header works correctly.
-rwxr-xr-x | calm/hint.py | 2 | ||||
-rwxr-xr-x | calm/package.py | 2 |
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) |