summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/npm.py
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2025-02-07 13:46:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-11 21:18:39 +0000
commit3e543e8eaa18cecd9e360eecd3925b18e7a9058e (patch)
treeeb145aea3fba915b26a850fef7d9c0410d4ab957 /bitbake/lib/bb/fetch2/npm.py
parent2935d76bb468e576ab6219fa352968f2835f4ab8 (diff)
downloadpoky-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.py2
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