From patchwork Thu May 24 15:47:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] lib/bb/fetch2: fix comments for verify_checksum Date: Thu, 24 May 2012 15:47:55 -0000 From: Paul Eggleton X-Patchwork-Id: 28617 Message-Id: <1337874475-5086-1-git-send-email-paul.eggleton@linux.intel.com> To: bitbake-devel@lists.openembedded.org This function no longer returns a value, it raises errors instead, so update the comments to reflect this. Signed-off-by: Paul Eggleton --- bitbake/lib/bb/fetch2/__init__.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index d4b6c3e..6ae69cd 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -274,13 +274,10 @@ def verify_checksum(u, ud, d): """ verify the MD5 and SHA256 checksum for downloaded src - return value: - - True: a checksum matched - - False: neither checksum matched + Raises a FetchError if one or both of the SRC_URI checksums do not match + the downloaded file, or if BB_STRICT_CHECKSUM is set and there are no + checksums specified. - if checksum is missing in recipes file, "BB_STRICT_CHECKSUM" decide the return value. - if BB_STRICT_CHECKSUM = "1" then return false as unmatched, otherwise return true as - matched """ if not ud.method.supports_checksum(ud):