summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-12-08 10:50:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-09 22:15:48 +0000
commiteb0a6fc210565d1cd9cb5316635e481431ef54ef (patch)
tree1a1b085358bfa72e69cd54c607853205df9f8c43 /bitbake
parentcde28486b0e65655fde392fcd7fdb64ac22be85c (diff)
downloadpoky-eb0a6fc210565d1cd9cb5316635e481431ef54ef.tar.gz
bitbake: fetch2: add means of disabling SRC_URI checksums
If we're fetching outside of the context of a recipe, it's handy to be able to disable checksum functionality so you don't get a meaningless warning about the signatures being missing. (Bitbake rev: 49dbcfbc56a206964acc5de761bba31be0283ba1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 3696e242e9..5b26524f45 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -535,7 +535,7 @@ def verify_checksum(ud, d):
535 535
536 """ 536 """
537 537
538 if not ud.method.supports_checksum(ud): 538 if ud.ignore_checksums or not ud.method.supports_checksum(ud):
539 return 539 return
540 540
541 md5data = bb.utils.md5_file(ud.localpath) 541 md5data = bb.utils.md5_file(ud.localpath)
@@ -1041,6 +1041,7 @@ class FetchData(object):
1041 self.sha256_expected = None 1041 self.sha256_expected = None
1042 else: 1042 else:
1043 self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name) 1043 self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name)
1044 self.ignore_checksums = False
1044 1045
1045 self.names = self.parm.get("name",'default').split(',') 1046 self.names = self.parm.get("name",'default').split(',')
1046 1047