diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-16 11:19:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 10:59:49 +0000 |
commit | ff7892fa808116acc1ac50effa023a4cb031a5fc (patch) | |
tree | eac5dc67571cdd0202f6f75017616ed29866caed /lib/bb/fetch2/npm.py | |
parent | cefb8c93c8299e68352cf7ec5ad9ca50c0d499ed (diff) | |
download | bitbake-ff7892fa808116acc1ac50effa023a4cb031a5fc.tar.gz |
lib/bb: Don't use deprecated bb.data.getVar/setVar API
The old style bb.data.getVar/setVar API is obsolete. Most of bitbake
doesn't use it but there were some pieces that escaped conversion. This
patch fixes the remaining users mostly in the fetchers.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/npm.py')
-rw-r--r-- | lib/bb/fetch2/npm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py index c3e02e47f..66ab075b1 100644 --- a/lib/bb/fetch2/npm.py +++ b/lib/bb/fetch2/npm.py @@ -90,7 +90,7 @@ class Npm(FetchMethod): self.basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -O -t 2 -T 30 -nv --passive-ftp --no-check-certificate " ud.prefixdir = prefixdir - ud.write_tarballs = ((data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) or "0") != "0") + ud.write_tarballs = ((d.getVar("BB_GENERATE_MIRROR_TARBALLS", True) or "0") != "0") ud.mirrortarball = 'npm_%s-%s.tar.xz' % (ud.pkgname, ud.version) ud.fullmirror = os.path.join(d.getVar("DL_DIR", True), ud.mirrortarball) |