aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-05-24 16:47:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-25 11:10:26 +0100
commit8b61b9584a8b00378f9fd8f165dbd65dcfd3c14e (patch)
tree5804ea7dccbb31f509b14c8af454da0e8b35f608
parent9ec0429271e68527a55fc123dea5a1b959c6ec3b (diff)
downloadbitbake-8b61b9584a8b00378f9fd8f165dbd65dcfd3c14e.tar.gz
lib/bb/fetch2: fix comments for verify_checksum
This function no longer returns a value, it raises errors instead, so update the comments to reflect this. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/__init__.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index d4b6c3ec3..6ae69cd4a 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/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):