From 26e98465deac592cbcdb9891f091d997e00eda9d Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Wed, 12 Mar 2014 21:21:39 +0000 Subject: [PATCH 1/2] nar: Clarify that 'assert-valid-signature' accepts a string. * guix/nar.scm (assert-valid-signature): Turn a comment into a docstring and improve the wording. --- guix/nar.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/nar.scm b/guix/nar.scm index 5bf1745..63b10dc 100644 --- a/guix/nar.scm +++ b/guix/nar.scm @@ -369,8 +369,8 @@ while the locks are held." port) (define (assert-valid-signature signature hash file) - ;; Bail out if SIGNATURE, an sexp, doesn't match HASH, a bytevector - ;; containing the expected hash for FILE. + "Bail out if SIGNATURE, a string (as produced by 'canonical-sexp->string'), +doesn't match HASH, a bytevector containing the expected hash for FILE." (let* ((signature (catch 'gcry-error (lambda () (string->canonical-sexp signature)) -- 1.7.9.5