summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGordon Messmer <gordon.messmer@gmail.com>2019-11-24 15:26:39 -0800
committerPanu Matilainen <pmatilai@redhat.com>2019-11-29 08:36:44 +0200
commit403f75cdbb94ced52f169684c12ee5110e468dfa (patch)
treea29d0753b6d7dbd18c7625f06f26e1be6b76ceda /scripts
parent54b5004cda39c2d1da78a0d8b8689cc6683bc9b6 (diff)
downloadrpm-403f75cdbb94ced52f169684c12ee5110e468dfa.tar.gz
scripts/pythondistdeps: Use rich deps for semantically versioned dependencies
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pythondistdeps.py6
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)