Fix stage with uri params (#31618)
* don't determine extension of a url * parse url to drop query params from filename
This commit is contained in:
parent
fe0643a14e
commit
b56871dd9c
@ -530,7 +530,7 @@ def expand(self):
|
||||
"Failed on expand() for URL %s" % self.url)
|
||||
|
||||
if not self.extension:
|
||||
self.extension = extension(self.url)
|
||||
self.extension = extension(self.archive_file)
|
||||
|
||||
if self.stage.expanded:
|
||||
tty.debug('Source already staged to %s' % self.stage.source_path)
|
||||
|
@ -366,9 +366,9 @@ def expected_archive_files(self):
|
||||
fnames = []
|
||||
expanded = True
|
||||
if isinstance(self.default_fetcher, fs.URLFetchStrategy):
|
||||
url_path = url_util.parse(self.default_fetcher.url).path
|
||||
expanded = self.default_fetcher.expand_archive
|
||||
clean_url = os.path.basename(
|
||||
sup.sanitize_file_path(self.default_fetcher.url))
|
||||
clean_url = os.path.basename(sup.sanitize_file_path(url_path))
|
||||
fnames.append(clean_url)
|
||||
|
||||
if self.mirror_paths:
|
||||
|
Loading…
Reference in New Issue
Block a user