From c8efdd0b589c3ded83873c61227786d01637fe04 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Sat, 9 May 2015 08:28:21 +0900 Subject: [PATCH] Don't verify signature if not present even if checks forced. --- lib/chibi/snow/commands.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/chibi/snow/commands.scm b/lib/chibi/snow/commands.scm index 9693ea97..d781a465 100644 --- a/lib/chibi/snow/commands.scm +++ b/lib/chibi/snow/commands.scm @@ -1925,7 +1925,10 @@ (define (package-maybe-signature-mismatches repo impl cfg pkg raw) (cond ((conf-get cfg 'ignore-signature? #t) #f) - ((not (assq 'signature (cdr pkg))) + ((not (cond + ((assq 'signature (cdr pkg)) + => (lambda (x) (assoc-get (cdr x) 'rsa))) + (else #f))) (and (conf-get cfg 'require-signature?) (not (yes-or-no? cfg "Package signature missing.\nProceed anyway?")) '(package-signature-missing)))