import: pypi: Handle 'null instead of #nil.
* guix/import/pypi.scm (non-empty-string-or-false): guile-json now returns 'null instead of #nil for null JSON values. Handle it.
This commit is contained in:
parent
9e85f652cb
commit
a2daee843d
@ -7,6 +7,7 @@
|
|||||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||||
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
||||||
|
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
@ -63,7 +64,7 @@
|
|||||||
(match-lambda
|
(match-lambda
|
||||||
("" #f)
|
("" #f)
|
||||||
((? string? str) str)
|
((? string? str) str)
|
||||||
((or #nil #f) #f)))
|
((or 'null #f) #f)))
|
||||||
|
|
||||||
;; PyPI project.
|
;; PyPI project.
|
||||||
(define-json-mapping <pypi-project> make-pypi-project pypi-project?
|
(define-json-mapping <pypi-project> make-pypi-project pypi-project?
|
||||||
|
Loading…
Reference in New Issue
Block a user