From 7229b0e85826e8c752bfe64334901c747951ccf2 Mon Sep 17 00:00:00 2001 From: zimoun Date: Tue, 19 Jan 2021 16:47:20 +0100 Subject: [PATCH] import: cran: Return multiple values for unknown packages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partly fixes . * guix/import/pypi.scm (cran->guix-package): Return 'values'. Signed-off-by: Ludovic Courtès --- guix/import/cran.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/guix/import/cran.scm b/guix/import/cran.scm index 7a73c11382..e848ebc789 100644 --- a/guix/import/cran.scm +++ b/guix/import/cran.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2017 Mathieu Othacehe ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2021 Sarah Morgensen +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -606,9 +607,7 @@ s-expression corresponding to that package, or #f on failure." ;; Retry import from CRAN (cran->guix-package package-name #:repo 'cran)) (else - (raise (condition - (&message - (message "couldn't find meta-data for R package"))))))))))) + (values #f '())))))))) (define* (cran-recursive-import package-name #:key (repo 'cran) version) (recursive-import package-name