nar: Clarify that 'assert-valid-signature' accepts a string.
authorNikita Karetnikov <nikita@karetnikov.org>
Sat, 15 Mar 2014 11:46:16 +0000 (11:46 +0000)
committerLudovic Courtès <ludo@gnu.org>
Sun, 30 Mar 2014 10:02:10 +0000 (12:02 +0200)
* guix/nar.scm (assert-valid-signature): Improve the wording.

guix/nar.scm

index 5bf1745..dfee309 100644 (file)
@@ -369,8 +369,9 @@ 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, which must be 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))