utils.bbclass: base_chk_file_checksum uses strick_checksums as a boolean
authorTom Rini <tom_rini@mentor.com>
Wed, 7 Jul 2010 15:40:52 +0000 (08:40 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 7 Jul 2010 15:42:01 +0000 (08:42 -0700)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/utils.bbclass

index 64d6c23..7740ea3 100644 (file)
@@ -91,7 +91,9 @@ def setup_checksum_deps(d):
                          (depends, "shasum-native:do_populate_sysroot"))
 
 def base_chk_file_checksum(localpath, src_uri, expected_md5sum, expected_sha256sum, data):
-    strict_checking =  bb.data.getVar("OE_STRICT_CHECKSUMS", data, True)
+    strict_checking = True
+    if bb.data.getVar("OE_STRICT_CHECKSUMS", data, True) != "1":
+        strict_checking = False
     if not os.path.exists(localpath):
         localpath = base_path_out(localpath, data)
         bb.note("The localpath does not exist '%s'" % localpath)