nar: Clarify that 'assert-valid-signature' accepts a string.
* guix/nar.scm (assert-valid-signature): Improve the wording.
This commit is contained in:
parent
3f5497ee10
commit
24194b6b54
|
@ -369,8 +369,9 @@ while the locks are held."
|
||||||
port)
|
port)
|
||||||
|
|
||||||
(define (assert-valid-signature signature hash file)
|
(define (assert-valid-signature signature hash file)
|
||||||
;; Bail out if SIGNATURE, an sexp, doesn't match HASH, a bytevector
|
;; Bail out if SIGNATURE, which must be a string as produced by
|
||||||
;; containing the expected hash for FILE.
|
;; 'canonical-sexp->string', doesn't match HASH, a bytevector containing
|
||||||
|
;; the expected hash for FILE.
|
||||||
(let* ((signature (catch 'gcry-error
|
(let* ((signature (catch 'gcry-error
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(string->canonical-sexp signature))
|
(string->canonical-sexp signature))
|
||||||
|
|
Loading…
Reference in New Issue