mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
bitbake: fetch2: remove unnecessary unquote
The URI path is already unquoted. Remove the unnecessary unquote function calls for URI path values. (Bitbake rev: 3de12bbc28b5a4189b849720735cf3e268d3941d) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f17c51c695
commit
170dd77e4a
@@ -46,7 +46,7 @@ class GCP(FetchMethod):
|
||||
else:
|
||||
ud.basename = os.path.basename(ud.path)
|
||||
|
||||
ud.localfile = urllib.parse.unquote(ud.basename)
|
||||
ud.localfile = ud.basename
|
||||
|
||||
def get_gcp_client(self):
|
||||
from google.cloud import storage
|
||||
|
||||
@@ -77,7 +77,7 @@ class S3(FetchMethod):
|
||||
else:
|
||||
ud.basename = os.path.basename(ud.path)
|
||||
|
||||
ud.localfile = urllib.parse.unquote(ud.basename)
|
||||
ud.localfile = ud.basename
|
||||
|
||||
ud.basecmd = d.getVar("FETCHCMD_s3") or "/usr/bin/env aws s3"
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class SFTP(FetchMethod):
|
||||
else:
|
||||
ud.basename = os.path.basename(ud.path)
|
||||
|
||||
ud.localfile = urllib.parse.unquote(ud.basename)
|
||||
ud.localfile = ud.basename
|
||||
|
||||
def download(self, ud, d):
|
||||
"""Fetch urls"""
|
||||
|
||||
@@ -78,9 +78,9 @@ class Wget(FetchMethod):
|
||||
else:
|
||||
ud.basename = os.path.basename(ud.path)
|
||||
|
||||
ud.localfile = urllib.parse.unquote(ud.basename)
|
||||
ud.localfile = ud.basename
|
||||
if not ud.localfile:
|
||||
ud.localfile = urllib.parse.unquote(ud.host + ud.path).replace("/", ".")
|
||||
ud.localfile = ud.host + ud.path.replace("/", ".")
|
||||
|
||||
self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 100"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user