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:
e3e757e
)
swh: Adjust for Guile-JSON 4.0 null handling.
author
Ludovic Courtès
<ludo@gnu.org>
Mon, 29 Jun 2020 22:15:35 +0000
(
00:15
+0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Mon, 29 Jun 2020 22:18:28 +0000
(
00:18
+0200)
* guix/swh.scm (string*): Add clause for 'null.
guix/swh.scm
patch
|
blob
|
blame
|
history
diff --git
a/guix/swh.scm
b/guix/swh.scm
index
ec744fe
..
913f0d1
100644
(file)
--- a/
guix/swh.scm
+++ b/
guix/swh.scm
@@
-174,7
+174,8
@@
Software Heritage."
;; Converts "string or #nil" coming from JSON to "string or #f".
(match-lambda
((? string? str) str)
- ((? null?) #f)))
+ ((? null?) #f) ;Guile-JSON 3.x
+ ('null #f))) ;Guile-JSON 4.x
(define %allow-request?
;; Takes a URL and method (e.g., the 'http-get' procedure) and returns true