summaryrefslogtreecommitdiffstats
path: root/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 07:51:18 +0100
commitef6d268f7b8527541a7fb044cf95a973be4097f4 (patch)
treeea0c81c6d66df9f4c9dd2e4ba3ba6d6f31f08c86 /lib/bb/fetch2/ssh.py
parent80411b3acf2173a4a7d415102d16676eb98363e3 (diff)
downloadbitbake-ef6d268f7b8527541a7fb044cf95a973be4097f4.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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/ssh.py')
-rw-r--r--lib/bb/fetch2/ssh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py
index 91ac15faa..8d6434a7e 100644
--- a/lib/bb/fetch2/ssh.py
+++ b/lib/bb/fetch2/ssh.py
@@ -69,6 +69,9 @@ class SSH(FetchMethod):
def supports(self, url, urldata, d):
return __pattern__.match(url) != None
+ def supports_checksum(self, urldata):
+ return False
+
def localpath(self, url, urldata, d):
m = __pattern__.match(urldata.url)
path = m.group('path')