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>
This commit is contained in:
Richard Purdie 2010-12-20 17:38:03 +00:00
parent 7abdf3e5c3
commit d4ba59c87e
1 changed files with 1 additions and 0 deletions

View File

@ -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)