diff options
author | Gordon Messmer <gordon.messmer@gmail.com> | 2019-11-24 15:26:39 -0800 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-11-29 08:36:44 +0200 |
commit | 403f75cdbb94ced52f169684c12ee5110e468dfa (patch) | |
tree | a29d0753b6d7dbd18c7625f06f26e1be6b76ceda /scripts | |
parent | 54b5004cda39c2d1da78a0d8b8689cc6683bc9b6 (diff) | |
download | rpm-403f75cdbb94ced52f169684c12ee5110e468dfa.tar.gz |
scripts/pythondistdeps: Use rich deps for semantically versioned dependencies
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pythondistdeps.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/pythondistdeps.py b/scripts/pythondistdeps.py index 5897992ec..94707d8f4 100755 --- a/scripts/pythondistdeps.py +++ b/scripts/pythondistdeps.py @@ -242,11 +242,13 @@ names.sort() for name in names: if py_deps[name]: # Print out versioned provides, requires, recommends, conflicts + spec_list = [] for spec in py_deps[name]: if spec[0] == '!=': - print('({n} < {v} or {n} >= {v}.0)'.format(n=name, v=spec[1])) + spec_list.append('{n} < {v} or {n} >= {v}.0'.format(n=name, v=spec[1])) else: - print('{} {} {}'.format(name, spec[0], spec[1])) + spec_list.append('{} {} {}'.format(name, spec[0], spec[1])) + print('(%s)' % ' with '.join(spec_list)) else: # Print out unversioned provides, requires, recommends, conflicts print(name) |