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/npm.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/npm.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index ac76d64cdb..c09f050448 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -166,7 +166,7 @@ class Npm(FetchMethod): | |||
166 | # Using the 'downloadfilename' parameter as local filename | 166 | # Using the 'downloadfilename' parameter as local filename |
167 | # or the npm package name. | 167 | # or the npm package name. |
168 | if "downloadfilename" in ud.parm: | 168 | if "downloadfilename" in ud.parm: |
169 | ud.localfile = npm_localfile(d.expand(ud.parm["downloadfilename"])) | 169 | ud.localfile = npm_localfile(ud.parm["downloadfilename"]) |
170 | else: | 170 | else: |
171 | ud.localfile = npm_localfile(ud.package, ud.version) | 171 | ud.localfile = npm_localfile(ud.package, ud.version) |
172 | 172 | ||