diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-01-03 08:32:50 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-01-03 08:34:41 +0100 |
commit | 7bb6420c5a4b1db46651f044cec9d804c1de56a3 (patch) | |
tree | 9fc5b94e3e23a39be6b054665875729dfea5caf9 | |
parent | 632ea817b88974f616e159ef7dcc174901a77aa3 (diff) | |
download | patches-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.scm | 3 |
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 |