summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTomas Orsava <torsava@redhat.com>2020-04-07 01:16:34 +0200
committerPanu Matilainen <pmatilai@redhat.com>2020-05-27 08:55:07 +0300
commit4ff70411be679ce86f9c00f149153b5b4e216c97 (patch)
tree34f57396208fc08fc424a034c17a031d63e7f096 /scripts
parentfbe6d2d0437720d59fe3d4f2766e0d91c4d1c100 (diff)
downloadrpm-4ff70411be679ce86f9c00f149153b5b4e216c97.tar.gz
scripts/pythondistdeps: Sort generated provides/requires
So that they can be compared with expected results in tests
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pythondistdeps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pythondistdeps.py b/scripts/pythondistdeps.py
index b601380d5..336edf55e 100755
--- a/scripts/pythondistdeps.py
+++ b/scripts/pythondistdeps.py
@@ -367,7 +367,8 @@ for name in names:
if len(spec_list) == 1:
print(spec_list[0])
else:
- print('({})'.format(' with '.join(spec_list)))
+ # Sort spec_list so that the results can be tested easily
+ print('({})'.format(' with '.join(sorted(spec_list))))
else:
# Print out unversioned provides, requires, recommends, conflicts
print(name)