aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-01-03 08:32:50 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-01-03 08:34:41 +0100
commit7bb6420c5a4b1db46651f044cec9d804c1de56a3 (patch)
tree9fc5b94e3e23a39be6b054665875729dfea5caf9
parent632ea817b88974f616e159ef7dcc174901a77aa3 (diff)
downloadpatches-7bb6420c5a4b1db46651f044cec9d804c1de56a3.tar
patches-7bb6420c5a4b1db46651f044cec9d804c1de56a3.tar.gz
import: cran: Abort if no description could be fetched.
* guix/import/cran.scm (cran->guix-package): Only proceed if a valid description could be fetched.
-rw-r--r--guix/import/cran.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 243203928d..ac9097073e 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -358,7 +358,8 @@ s-expression corresponding to that package, or #f on failure."
(eq? repo 'bioconductor))
;; Retry import from CRAN
(cran->guix-package package-name 'cran)
- (description->package repo description))))))
+ (and description
+ (description->package repo description)))))))
(define* (cran-recursive-import package-name #:optional (repo 'gnu))
(recursive-import package-name repo