import: cran: Return multiple values for unknown packages.

Partly fixes <https://bugs.gnu.org/44115>.

* guix/import/pypi.scm (cran->guix-package): Return 'values'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
zimoun 2021-01-19 16:47:20 +01:00 committed by Ludovic Courtès
parent 1fe81b349c
commit 7229b0e858
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

@ -4,6 +4,7 @@
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;;
;;; 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