summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2022-12-02 03:50:23 -0800
committerGitHub <noreply@github.com>2022-12-02 04:50:23 -0700
commit18efd817b1cf3460e7d3727b113445cb592e2111 (patch)
tree254a1d62c1df9ae046f8d89f1bf0d6cfcfa2724f /lib
parent65a5369d6ac90e46c89c0c12bfeca31767229bbe (diff)
downloadspack-18efd817b1cf3460e7d3727b113445cb592e2111.tar.gz
spack-18efd817b1cf3460e7d3727b113445cb592e2111.tar.bz2
spack-18efd817b1cf3460e7d3727b113445cb592e2111.tar.xz
spack-18efd817b1cf3460e7d3727b113445cb592e2111.zip
Bugfix: Fetch should not force use of curl to check url existence (#34225)
* Bugfix: Fetch should not force use of curl to check url existence * Switch type hints from comments to actual hints
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/fetch_strategy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py
index 3b908054e3..11ff951d87 100644
--- a/lib/spack/spack/fetch_strategy.py
+++ b/lib/spack/spack/fetch_strategy.py
@@ -106,12 +106,12 @@ class FetchStrategy(object):
#: The URL attribute must be specified either at the package class
#: level, or as a keyword argument to ``version()``. It is used to
#: distinguish fetchers for different versions in the package DSL.
- url_attr = None # type: Optional[str]
+ url_attr: Optional[str] = None
#: Optional attributes can be used to distinguish fetchers when :
#: classes have multiple ``url_attrs`` at the top-level.
# optional attributes in version() args.
- optional_attrs = [] # type: List[str]
+ optional_attrs: List[str] = []
def __init__(self, **kwargs):
# The stage is initialized late, so that fetch strategies can be
@@ -335,7 +335,7 @@ class URLFetchStrategy(FetchStrategy):
url = None
errors = []
for url in self.candidate_urls:
- if not web_util.url_exists(url, self.curl):
+ if not web_util.url_exists(url):
tty.debug("URL does not exist: " + url)
continue