[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/09: import: cpan: Gracefully handle missing projects.
From: |
guix-commits |
Subject: |
04/09: import: cpan: Gracefully handle missing projects. |
Date: |
Thu, 12 Mar 2020 06:52:49 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c00ae79cca7f4b1c95669c5857c0e55e1b253f4f
Author: Ludovic Courtès <address@hidden>
AuthorDate: Thu Mar 12 11:18:40 2020 +0100
import: cpan: Gracefully handle missing projects.
* guix/import/cpan.scm (cpan-fetch): Check whether 'json-fetch' returns #f.
---
guix/import/cpan.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/import/cpan.scm b/guix/import/cpan.scm
index 7a97c7f..6bcd2ce 100644
--- a/guix/import/cpan.scm
+++ b/guix/import/cpan.scm
@@ -181,9 +181,9 @@ return \"Test-Simple\""
or #f on failure. MODULE should be the distribution name, such as
\"Test-Script\" for the \"Test::Script\" module."
;; This API always returns the latest release of the module.
- (json->cpan-release
- (json-fetch (string-append (%metacpan-base-url) "/release/"
- name))))
+ (and=> (json-fetch (string-append (%metacpan-base-url) "/release/"
+ name))
+ json->cpan-release))
(define (cpan-home name)
(string-append "https://metacpan.org/release/" name))
- branch master updated (ec73c90 -> 0a703c0), guix-commits, 2020/03/12
- 01/09: gnu: guile-next: Enable JIT on ARMv7., guix-commits, 2020/03/12
- 02/09: import: pypi: Rewrite to use 'define-json-mapping'., guix-commits, 2020/03/12
- 03/09: import: utils: Remove 'assoc-ref*'., guix-commits, 2020/03/12
- 06/09: gnu: dune-*: set up MPI for tests, guix-commits, 2020/03/12
- 05/09: inferior: Distinguish inferior exceptions., guix-commits, 2020/03/12
- 07/09: gnu: Add dune-uggrid., guix-commits, 2020/03/12
- 09/09: gnu: dune-istl: Build with suitesparse, guix-commits, 2020/03/12
- 08/09: gnu: Add dune-subgrid, guix-commits, 2020/03/12
- 04/09: import: cpan: Gracefully handle missing projects.,
guix-commits <=