summaryrefslogtreecommitdiffstats
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:57 +0100
commitd1ad98b64b1d9695b0af2f734786d5e481904b1e (patch)
treee06114072c4a4fec32d62f5d933f779e47e5fc7e
parent77264ca2ea7b0ff066d0857cf322fff2adca6394 (diff)
downloadpoky-d1ad98b64b1d9695b0af2f734786d5e481904b1e.tar.gz
bitbake: Allow checksums to be used for files retrieved using SFTP
(Bitbake rev: fd438a334d1f90ff07dded61c9648987da42c34f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index adbbf30fda..7cf13cdec9 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -990,13 +990,13 @@ class FetchData(object):
990 self.sha256_name = "sha256sum" 990 self.sha256_name = "sha256sum"
991 if self.md5_name in self.parm: 991 if self.md5_name in self.parm:
992 self.md5_expected = self.parm[self.md5_name] 992 self.md5_expected = self.parm[self.md5_name]
993 elif self.type not in ["http", "https", "ftp", "ftps"]: 993 elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
994 self.md5_expected = None 994 self.md5_expected = None
995 else: 995 else:
996 self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name) 996 self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name)
997 if self.sha256_name in self.parm: 997 if self.sha256_name in self.parm:
998 self.sha256_expected = self.parm[self.sha256_name] 998 self.sha256_expected = self.parm[self.sha256_name]
999 elif self.type not in ["http", "https", "ftp", "ftps"]: 999 elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
1000 self.sha256_expected = None 1000 self.sha256_expected = None
1001 else: 1001 else:
1002 self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name) 1002 self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name)