summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-12-04 09:41:38 +0100
committerGitHub <noreply@github.com>2024-12-04 09:41:38 +0100
commitf82554a39ba3faa264741d15f4608654d42d1626 (patch)
treee518db54c35f8602e7d9e14f516798789b1e5ee2 /lib
parent2aaf50b8f75bb9aa282672f184d5c548e6869491 (diff)
downloadspack-f82554a39ba3faa264741d15f4608654d42d1626.tar.gz
spack-f82554a39ba3faa264741d15f4608654d42d1626.tar.bz2
spack-f82554a39ba3faa264741d15f4608654d42d1626.tar.xz
spack-f82554a39ba3faa264741d15f4608654d42d1626.zip
stage.py: improve path to url (#47898)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/stage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py
index 84949c2e28..08a6e31b93 100644
--- a/lib/spack/spack/stage.py
+++ b/lib/spack/spack/stage.py
@@ -488,7 +488,7 @@ class Stage(LockableStagingDir):
# Insert fetchers in the order that the URLs are provided.
fetchers[:0] = (
fs.from_url_scheme(
- url_util.join(mirror.fetch_url, self.mirror_layout.path),
+ url_util.join(mirror.fetch_url, *self.mirror_layout.path.split(os.sep)),
checksum=digest,
expand=expand,
extension=extension,