summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/ssh.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-19 14:32:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-21 17:20:16 +0000
commit6a48474de9505a3700863f31839a7c53c5e18a8d (patch)
tree118f3ff841a9ebd9e93bf24bc9571ced36067a5e /lib/bb/fetch2/ssh.py
parent06590cfebbcf6565a17b80cc298e3ecdfaba4656 (diff)
downloadbitbake-6a48474de9505a3700863f31839a7c53c5e18a8d.tar.gz
fetch2: Stop passing around the pointless url parameter
There is no good reason to keep passing around the url parameter when its contained within urldata (ud). This is left around due to legacy reasons, some functions take it, some don't and its time to cleanup. This is fetcher internal API, there are a tiny number of external users of the internal API (buildhistory and distrodata) which can be fixed up after this change. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/ssh.py')
-rw-r--r--lib/bb/fetch2/ssh.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py
index 8b5acbf6d..4ae979472 100644
--- a/lib/bb/fetch2/ssh.py
+++ b/lib/bb/fetch2/ssh.py
@@ -72,8 +72,8 @@ __pattern__ = re.compile(r'''
class SSH(FetchMethod):
'''Class to fetch a module or modules via Secure Shell'''
- def supports(self, url, urldata, d):
- return __pattern__.match(url) != None
+ def supports(self, urldata, d):
+ return __pattern__.match(urldata.url) != None
def supports_checksum(self, urldata):
return False
@@ -89,10 +89,10 @@ class SSH(FetchMethod):
host = m.group('host')
urldata.localpath = os.path.join(d.getVar('DL_DIR', True), os.path.basename(path))
- def download(self, url, urldata, d):
+ def download(self, urldata, d):
dldir = d.getVar('DL_DIR', True)
- m = __pattern__.match(url)
+ m = __pattern__.match(urldata.url)
path = m.group('path')
host = m.group('host')
port = m.group('port')