Fix order of regexes reported by spack url summary

This commit is contained in:
Adam J. Stewart 2018-07-24 22:08:50 -05:00 committed by Todd Gamblin
parent 656e935e50
commit 13c52066a5

View file

@ -227,7 +227,7 @@ def url_summary(args):
print()
print(' Index Count Regular Expression')
for ni in name_regex_dict:
for ni in sorted(name_regex_dict.keys()):
print(' {0:>3}: {1:>6} r{2!r}'.format(
ni, name_count_dict[ni], name_regex_dict[ni]))
print()
@ -236,7 +236,7 @@ def url_summary(args):
print()
print(' Index Count Regular Expression')
for vi in version_regex_dict:
for vi in sorted(version_regex_dict.keys()):
print(' {0:>3}: {1:>6} r{2!r}'.format(
vi, version_count_dict[vi], version_regex_dict[vi]))
print()