summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@openmoko.org>2008-10-01 11:59:23 +0200
committerHolger Freyther <ich@tamarin.(none)>2008-10-15 18:59:17 +0200
commitf4a36e1e110ced78c3b360e10d78ef236d850597 (patch)
treed69188b1d5206650c7c8c79dce0aeac3c3be040a
parent2eeab777ea02e41112659f7c1714fe1b419dd5f2 (diff)
[base.bbclass] Make it fatal if no entry in checksums.ini exist
-rw-r--r--classes/base.bbclass5
1 files changed, 4 insertions, 1 deletions
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)
}