diff options
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 = '' |