diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/sftp.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/sftp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/sftp.py b/bitbake/lib/bb/fetch2/sftp.py index 5fbbcfdd90..8ea4ef2ff3 100644 --- a/bitbake/lib/bb/fetch2/sftp.py +++ b/bitbake/lib/bb/fetch2/sftp.py | |||
@@ -72,7 +72,7 @@ from bb.fetch2 import runfetchcmd | |||
72 | class SFTP(FetchMethod): | 72 | class SFTP(FetchMethod): |
73 | """Class to fetch urls via 'sftp'""" | 73 | """Class to fetch urls via 'sftp'""" |
74 | 74 | ||
75 | def supports(self, url, ud, d): | 75 | def supports(self, ud, d): |
76 | """ | 76 | """ |
77 | Check to see if a given url can be fetched with sftp. | 77 | Check to see if a given url can be fetched with sftp. |
78 | """ | 78 | """ |
@@ -95,10 +95,10 @@ class SFTP(FetchMethod): | |||
95 | 95 | ||
96 | ud.localfile = data.expand(urllib.unquote(ud.basename), d) | 96 | ud.localfile = data.expand(urllib.unquote(ud.basename), d) |
97 | 97 | ||
98 | def download(self, uri, ud, d): | 98 | def download(self, ud, d): |
99 | """Fetch urls""" | 99 | """Fetch urls""" |
100 | 100 | ||
101 | urlo = URI(uri) | 101 | urlo = URI(ud.url) |
102 | basecmd = 'sftp -oPasswordAuthentication=no' | 102 | basecmd = 'sftp -oPasswordAuthentication=no' |
103 | port = '' | 103 | port = '' |
104 | if urlo.port: | 104 | if urlo.port: |
@@ -124,6 +124,6 @@ class SFTP(FetchMethod): | |||
124 | cmd = '%s %s %s %s' % (basecmd, port, commands.mkarg(remote), | 124 | cmd = '%s %s %s %s' % (basecmd, port, commands.mkarg(remote), |
125 | commands.mkarg(lpath)) | 125 | commands.mkarg(lpath)) |
126 | 126 | ||
127 | bb.fetch2.check_network_access(d, cmd, uri) | 127 | bb.fetch2.check_network_access(d, cmd, ud.url) |
128 | runfetchcmd(cmd, d) | 128 | runfetchcmd(cmd, d) |
129 | return True | 129 | return True |