diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2025-02-07 13:46:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-11 21:18:39 +0000 |
commit | 3e543e8eaa18cecd9e360eecd3925b18e7a9058e (patch) | |
tree | eb145aea3fba915b26a850fef7d9c0410d4ab957 /bitbake/lib/bb/fetch2/gcp.py | |
parent | 2935d76bb468e576ab6219fa352968f2835f4ab8 (diff) | |
download | poky-3e543e8eaa18cecd9e360eecd3925b18e7a9058e.tar.gz |
bitbake: fetch2: remove unnecessary expand function calls
The fetch data class already expands the type, host, path, user, pswd
and parm variables. The fetcher classes already expand the localfile
variable. The getVar function expands the returned string per default.
Remove unnecessary expand function calls to simplify the code.
(Bitbake rev: 1b1eb037b861fbf20491ac17e519e9eaf232b858)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/gcp.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/gcp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gcp.py b/bitbake/lib/bb/fetch2/gcp.py index 2ee9ed2194..268267b7ac 100644 --- a/bitbake/lib/bb/fetch2/gcp.py +++ b/bitbake/lib/bb/fetch2/gcp.py | |||
@@ -46,7 +46,7 @@ class GCP(FetchMethod): | |||
46 | else: | 46 | else: |
47 | ud.basename = os.path.basename(ud.path) | 47 | ud.basename = os.path.basename(ud.path) |
48 | 48 | ||
49 | ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) | 49 | ud.localfile = urllib.parse.unquote(ud.basename) |
50 | 50 | ||
51 | def get_gcp_client(self): | 51 | def get_gcp_client(self): |
52 | from google.cloud import storage | 52 | from google.cloud import storage |