summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-20 17:38:03 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-20 17:38:03 +0000
commitd4ba59c87e06c6266e4abe349bd5255203cf868f (patch)
treebc72f7548cbf56d0bb62cc907f5b0ac83833abcd /bitbake
parent7abdf3e5c36197c5518edf53acb98611559dadec (diff)
downloadpoky-d4ba59c87e06c6266e4abe349bd5255203cf868f.tar.gz
bitbake/fetch: Add missing return so if a checksum isn't present, it isn't checked
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 708e397264..88212ffa33 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -256,6 +256,7 @@ def verify_checksum(u, ud, d):
256 % (ud.localpath, ud.md5_name, md5data, ud.sha256_name, sha256data)) 256 % (ud.localpath, ud.md5_name, md5data, ud.sha256_name, sha256data))
257 if bb.data.getVar("BB_STRICT_CHECKSUM", d, True) == "1": 257 if bb.data.getVar("BB_STRICT_CHECKSUM", d, True) == "1":
258 raise FetchError("No checksum specified for %s." % u) 258 raise FetchError("No checksum specified for %s." % u)
259 return
259 260
260 if (ud.md5_expected != md5data or ud.sha256_expected != sha256data): 261 if (ud.md5_expected != md5data or ud.sha256_expected != sha256data):
261 bb.error("The checksums for '%s' did not match." % ud.localpath) 262 bb.error("The checksums for '%s' did not match." % ud.localpath)