From d0ea33fa67e4ea8c695ded632b634f6bd0dfe96f Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 4 Dec 2024 09:41:38 +0100 Subject: [PATCH] stage.py: improve path to url (#47898) --- lib/spack/spack/stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 8b4efcf387b..dcce1ebf472 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -487,7 +487,7 @@ def _generate_fetchers(self, mirror_only=False) -> Generator["fs.FetchStrategy", # 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,