Make downloads from list_url deterministic (#10047)

This commit is contained in:
Adam J. Stewart 2018-12-10 07:36:55 -06:00 committed by Massimiliano Culpo
parent 22446d7303
commit ad046402b6

View File

@ -328,7 +328,7 @@ def find_versions_of_archive(archive_urls, list_url=None, list_depth=0):
# Build a dict version -> URL from any links that match the wildcards.
versions = {}
for url in links:
for url in sorted(links):
if any(re.search(r, url) for r in regexes):
try:
ver = spack.url.parse_version(url)