HCoop
/
jackhill
/
guix
/
guix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f5497e
)
nar: Clarify that 'assert-valid-signature' accepts a string.
author
Nikita Karetnikov
<nikita@karetnikov.org>
Sat, 15 Mar 2014 11:46:16 +0000
(11:46 +0000)
committer
Ludovic 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
patch
|
blob
|
blame
|
history
diff --git
a/guix/nar.scm
b/guix/nar.scm
index
5bf1745
..
dfee309
100644
(file)
--- a/
guix/nar.scm
+++ b/
guix/nar.scm
@@
-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))