summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2019-03-12 20:19:46 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-03-12 20:19:46 -0500
commit2bea940e4399c7edf4cf7781e83c69235b7bcb8e (patch)
treec0b96327e08047c428201d332a5e079e85d775a7 /lib
parent6bda37f542cbaeb92855cf39ec2c961b95dadcb2 (diff)
downloadspack-2bea940e4399c7edf4cf7781e83c69235b7bcb8e.tar.gz
spack-2bea940e4399c7edf4cf7781e83c69235b7bcb8e.tar.bz2
spack-2bea940e4399c7edf4cf7781e83c69235b7bcb8e.tar.xz
spack-2bea940e4399c7edf4cf7781e83c69235b7bcb8e.zip
find_versions_of_archive: expand link search (#10758)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/web.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/util/web.py b/lib/spack/spack/util/web.py
index 042ed9c60e..959d03781e 100644
--- a/lib/spack/spack/util/web.py
+++ b/lib/spack/spack/util/web.py
@@ -304,8 +304,9 @@ def find_versions_of_archive(archive_urls, list_url=None, list_depth=0):
list_urls.update(additional_list_urls)
# Grab some web pages to scrape.
+ # Start with any links already given.
pages = {}
- links = set()
+ links = set(archive_urls)
for lurl in list_urls:
pg, lnk = spider(lurl, depth=list_depth)
pages.update(pg)