summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 71be6f4b94..a055faaf19 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -562,8 +562,14 @@ class FetchData(object):
562 else: 562 else:
563 self.md5_name = "md5sum" 563 self.md5_name = "md5sum"
564 self.sha256_name = "sha256sum" 564 self.sha256_name = "sha256sum"
565 self.md5_expected = bb.data.getVarFlag("SRC_URI", self.md5_name, d) 565 if self.md5_name in self.parm:
566 self.sha256_expected = bb.data.getVarFlag("SRC_URI", self.sha256_name, d) 566 self.md5_expected = self.parm[self.md5_name]
567 else:
568 self.md5_expected = bb.data.getVarFlag("SRC_URI", self.md5_name, d)
569 if self.sha256_name in self.parm:
570 self.sha256_expected = self.parm[self.sha256_name]
571 else:
572 self.sha256_expected = bb.data.getVarFlag("SRC_URI", self.sha256_name, d)
567 573
568 self.names = self.parm.get("name",'default').split(',') 574 self.names = self.parm.get("name",'default').split(',')
569 575