summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/ssh.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-15 19:49:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-20 09:24:23 +0100
commitb0b9ee29a216d63387684dd6c3934b059849ab5b (patch)
treeb2120b56b3619e0871931439398baa4bb6cc814e /bitbake/lib/bb/fetch2/ssh.py
parent311c68bd06a5dc2df03f689f4061a8544716c930 (diff)
downloadpoky-b0b9ee29a216d63387684dd6c3934b059849ab5b.tar.gz
bitbake/fetch: Spell out which fetcher backends support and recommend checksums
There were some hardcoded behaviours in the system for which backends support checksums verses which backends recommend them verses which don't recommend them. This moves the functionality into specific fetchers and then makes the general code generic. This cleans up the codebase and fixes some corner cases such as trying to checksum directories returned by the git fetcher. (Bitbake rev: ef6d268f7b8527541a7fb044cf95a973be4097f4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/ssh.py')
-rw-r--r--bitbake/lib/bb/fetch2/ssh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py
index 91ac15faae..8d6434a7eb 100644
--- a/bitbake/lib/bb/fetch2/ssh.py
+++ b/bitbake/lib/bb/fetch2/ssh.py
@@ -69,6 +69,9 @@ class SSH(FetchMethod):
69 def supports(self, url, urldata, d): 69 def supports(self, url, urldata, d):
70 return __pattern__.match(url) != None 70 return __pattern__.match(url) != None
71 71
72 def supports_checksum(self, urldata):
73 return False
74
72 def localpath(self, url, urldata, d): 75 def localpath(self, url, urldata, d):
73 m = __pattern__.match(urldata.url) 76 m = __pattern__.match(urldata.url)
74 path = m.group('path') 77 path = m.group('path')