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:56 +0000 |
| commit | 8de811ae76f8a5bc160e3e3f72da3a5e08b6ca1a (patch) | |
| tree | d05237b14523de16c128de71d99eed4f8f9e554e /bitbake/lib/bb/fetch2/sftp.py | |
| parent | 4d8ee55164303544c9cf9c9356448cbc79885815 (diff) | |
| download | poky-8de811ae76f8a5bc160e3e3f72da3a5e08b6ca1a.tar.gz | |
bitbake: 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.
(Bitbake rev: ff7892fa808116acc1ac50effa023a4cb031a5fc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/sftp.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/sftp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/sftp.py b/bitbake/lib/bb/fetch2/sftp.py index 7989fccc75..48ddfc176a 100644 --- a/bitbake/lib/bb/fetch2/sftp.py +++ b/bitbake/lib/bb/fetch2/sftp.py | |||
| @@ -92,7 +92,7 @@ class SFTP(FetchMethod): | |||
| 92 | else: | 92 | else: |
| 93 | ud.basename = os.path.basename(ud.path) | 93 | ud.basename = os.path.basename(ud.path) |
| 94 | 94 | ||
| 95 | ud.localfile = data.expand(urllib.parse.unquote(ud.basename), d) | 95 | ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) |
| 96 | 96 | ||
| 97 | def download(self, ud, d): | 97 | def download(self, ud, d): |
| 98 | """Fetch urls""" | 98 | """Fetch urls""" |
| @@ -104,7 +104,7 @@ class SFTP(FetchMethod): | |||
| 104 | port = '-P %d' % urlo.port | 104 | port = '-P %d' % urlo.port |
| 105 | urlo.port = None | 105 | urlo.port = None |
| 106 | 106 | ||
| 107 | dldir = data.getVar('DL_DIR', d, True) | 107 | dldir = d.getVar('DL_DIR', True) |
| 108 | lpath = os.path.join(dldir, ud.localfile) | 108 | lpath = os.path.join(dldir, ud.localfile) |
| 109 | 109 | ||
| 110 | user = '' | 110 | user = '' |
