[base.bbclass] Make it fatal if no entry in checksums.ini exist
authorHolger Hans Peter Freyther <zecke@openmoko.org>
Wed, 1 Oct 2008 09:59:23 +0000 (11:59 +0200)
committerHolger Freyther <ich@tamarin.(none)>
Wed, 15 Oct 2008 16:59:17 +0000 (18:59 +0200)
classes/base.bbclass

index 1a7ef4f..bac46f1 100644 (file)
@@ -559,7 +559,10 @@ python base_do_fetch() {
                try:
                        if type == "http" or type == "https" or type == "ftp" or type == "ftps":
                                if not base_chk_file(parser, pn, pv,uri, localpath, d):
-                                       bb.note("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri))
+                                       if not bb.data.getVar("OE_ALLOW_INSECURE_DOWNLOADS",d, True):
+                                               bb.fatal("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri))
+                                       else:
+                                               bb.note("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri))
                except Exception:
                        raise bb.build.FuncFailed("Checksum of '%s' failed" % uri)
 }