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:
9d97a11
)
challenge: Fix type mismatch when comparing to a local hash.
author
Ludovic Courtès
<ludo@gnu.org>
Sat, 14 Dec 2019 13:59:32 +0000
(14:59 +0100)
committer
Ludovic Courtès
<ludo@gnu.org>
Sat, 14 Dec 2019 23:34:05 +0000
(
00:34
+0100)
* guix/scripts/challenge.scm (call-with-mismatches)[narinfo1]: When
LOCAL-HASH is true, call 'narinfo-hash->sha256' and use 'bytevector=?'
instead of 'string=?'.
guix/scripts/challenge.scm
patch
|
blob
|
blame
|
history
diff --git
a/guix/scripts/challenge.scm
b/guix/scripts/challenge.scm
index
51e8d3e
..
ebeebd5
100644
(file)
--- a/
guix/scripts/challenge.scm
+++ b/
guix/scripts/challenge.scm
@@
-321,8
+321,9
@@
specified in COMPARISON-REPORT."
(define narinfo1
(if local-hash
(find (lambda (narinfo)
- (not (string=? (narinfo-hash narinfo)
- local-hash)))
+ (not (bytevector=? (narinfo-hash->sha256
+ (narinfo-hash narinfo))
+ local-hash)))
narinfos)
(first (comparison-report-narinfos comparison-report))))