summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-06-20 11:35:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 13:26:31 +0100
commitfd438a334d1f90ff07dded61c9648987da42c34f (patch)
tree82a69874c3455522ff7736e90b81c11fa74e1756 /lib/bb/fetch2/__init__.py
parent53c6b65bbcd5a6d3caed8581533f31ac373163a7 (diff)
downloadopenembedded-core-contrib-fd438a334d1f90ff07dded61c9648987da42c34f.tar.gz
Allow checksums to be used for files retrieved using SFTP
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r--lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index adbbf30fda..7cf13cdec9 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -990,13 +990,13 @@ class FetchData(object):
self.sha256_name = "sha256sum"
if self.md5_name in self.parm:
self.md5_expected = self.parm[self.md5_name]
- elif self.type not in ["http", "https", "ftp", "ftps"]:
+ elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
self.md5_expected = None
else:
self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name)
if self.sha256_name in self.parm:
self.sha256_expected = self.parm[self.sha256_name]
- elif self.type not in ["http", "https", "ftp", "ftps"]:
+ elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
self.sha256_expected = None
else:
self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name)