guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: import: cran: Abort if no description could be fetched.


From: guix-commits
Subject: 03/04: import: cran: Abort if no description could be fetched.
Date: Thu, 3 Jan 2019 02:34:57 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 7bb6420c5a4b1db46651f044cec9d804c1de56a3
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Jan 3 08:32:50 2019 +0100

    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.
---
 guix/import/cran.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 2432039..ac90970 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]