[bitbake-devel] [PATCH] fetcher: fix BB_STRICT_CHECKSUM datatype check
Alejandro Hernandez
alejandro.hernandez at linux.intel.com
Thu Sep 25 23:14:45 UTC 2014
[YOCTO #6762]
Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
---
lib/bb/fetch2/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index df2f2b0..e182a9d 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -544,7 +544,7 @@ def verify_checksum(ud, d):
if ud.method.recommends_checksum(ud):
# If strict checking enabled and neither sum defined, raise error
strict = d.getVar("BB_STRICT_CHECKSUM", True) or None
- if strict and not (ud.md5_expected or ud.sha256_expected):
+ if (strict == 1) and not (ud.md5_expected or ud.sha256_expected):
logger.error('No checksum specified for %s, please add at least one to the recipe:\n'
'SRC_URI[%s] = "%s"\nSRC_URI[%s] = "%s"' %
(ud.localpath, ud.md5_name, md5data,
--
1.9.1
More information about the bitbake-devel
mailing list