From: Holger Hans Peter Freyther Date: Wed, 1 Oct 2008 09:59:23 +0000 (+0200) Subject: [base.bbclass] Make it fatal if no entry in checksums.ini exist X-Git-Tag: Release-2010-05/1~5805^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a36e1e110ced78c3b360e10d78ef236d850597;p=openembedded.git [base.bbclass] Make it fatal if no entry in checksums.ini exist --- diff --git a/classes/base.bbclass b/classes/base.bbclass index 1a7ef4f143..bac46f138d 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -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) }