diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2022-09-01 19:59:02 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2022-10-02 14:57:16 +0300 |
commit | c7f80012646d51f3120f53e208ed1c78734dc5ac (patch) | |
tree | 99e327c891bdc61e415b437568ca44acf53744ef /calm/hint.py | |
parent | 8e2b79710039094bf941beb4270013895cf5dd6c (diff) |
Handle a version-constraint appearing in requires:
Synthesize depends: from requires: in a way which doesn't mess up any
version-constraint present while sorting.
Future work:
Store the depends: hint decomposed into a list, rather than a string
which needs to get split everywhere it's used.
Diffstat (limited to 'calm/hint.py')
-rwxr-xr-x | calm/hint.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/calm/hint.py b/calm/hint.py index e76e9e2..b151317 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -350,9 +350,6 @@ def hint_file_parse(fn, kind, strict=False): warnings.append('sdesc is much longer than ldesc') # sort these hints, as differences in ordering are uninteresting - if 'requires' in hints: - hints['requires'] = split_trim_sort_join(hints['requires'], None, ' ') - if 'build-depends' in hints: if ',' in hints['build-depends']: hints['build-depends'] = split_trim_sort_join(hints['build-depends'], ',') @@ -425,7 +422,7 @@ def main(args): for fn in args.files: hints = hint_file_parse(fn, spvr if fn.endswith('src.hint') else pvr) - if args.verbose > 1: + if args.verbose >= 1: print(hints) if 'parse-warnings' in hints: |