[oe-commits] Holger Hans Peter Freyther : [base.bbclass] Make it fatal if no entry in checksums.ini exist
GIT User account
git at amethyst.openembedded.net
Wed Oct 15 17:01:17 UTC 2008
Module: openembedded.dev.git
Branch: org.openembedded.dev
Commit: f4a36e1e110ced78c3b360e10d78ef236d850597
URL: http://gitweb.openembedded.net/?p=openembedded.dev.git&a=commit;h=f4a36e1e110ced78c3b360e10d78ef236d850597
Author: Holger Hans Peter Freyther <zecke at openmoko.org>
Date: Wed Oct 1 11:59:23 2008 +0200
[base.bbclass] Make it fatal if no entry in checksums.ini exist
---
classes/base.bbclass | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 1a7ef4f..bac46f1 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)
}
More information about the Openembedded-commits
mailing list