stage.py: improve path to url (#47898)

This commit is contained in:
Harmen Stoppels 2024-12-04 09:41:38 +01:00 committed by Harmen Stoppels
parent 4e913876b9
commit d0ea33fa67

View File

@ -487,7 +487,7 @@ def _generate_fetchers(self, mirror_only=False) -> Generator["fs.FetchStrategy",
# Insert fetchers in the order that the URLs are provided. # Insert fetchers in the order that the URLs are provided.
fetchers[:0] = ( fetchers[:0] = (
fs.from_url_scheme( 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, checksum=digest,
expand=expand, expand=expand,
extension=extension, extension=extension,