Skip to content

Commit f82554a

Browse files
authored
stage.py: improve path to url (spack#47898)
1 parent 2aaf50b commit f82554a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spack/spack/stage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def _generate_fetchers(self, mirror_only=False) -> Generator["fs.FetchStrategy",
488488
# Insert fetchers in the order that the URLs are provided.
489489
fetchers[:0] = (
490490
fs.from_url_scheme(
491-
url_util.join(mirror.fetch_url, self.mirror_layout.path),
491+
url_util.join(mirror.fetch_url, *self.mirror_layout.path.split(os.sep)),
492492
checksum=digest,
493493
expand=expand,
494494
extension=extension,

0 commit comments

Comments
 (0)