From d4ba59c87e06c6266e4abe349bd5255203cf868f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 Dec 2010 17:38:03 +0000 Subject: bitbake/fetch: Add missing return so if a checksum isn't present, it isn't checked Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 708e39726..88212ffa3 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): % (ud.localpath, ud.md5_name, md5data, ud.sha256_name, sha256data)) if bb.data.getVar("BB_STRICT_CHECKSUM", d, True) == "1": raise FetchError("No checksum specified for %s." % u) + return if (ud.md5_expected != md5data or ud.sha256_expected != sha256data): bb.error("The checksums for '%s' did not match." % ud.localpath) -- cgit v1.2.3