import/cran: Do not attempt to generate definitions for failed imports.
* guix/scripts/import/cran.scm (guix-import-cran): Remove failed imports from list of packages to define.
This commit is contained in:
parent
a689c85af4
commit
2bbe6b300e
@ -1,6 +1,6 @@
|
|||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
||||||
;;; Copyright © 2015, 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015, 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
|
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
@ -98,8 +98,9 @@ Import and convert the CRAN package for PACKAGE-NAME.\n"))
|
|||||||
(if (assoc-ref opts 'recursive)
|
(if (assoc-ref opts 'recursive)
|
||||||
;; Recursive import
|
;; Recursive import
|
||||||
(map package->definition
|
(map package->definition
|
||||||
(cran-recursive-import package-name
|
(filter identity
|
||||||
#:repo (or (assoc-ref opts 'repo) 'cran)))
|
(cran-recursive-import package-name
|
||||||
|
#:repo (or (assoc-ref opts 'repo) 'cran))))
|
||||||
;; Single import
|
;; Single import
|
||||||
(let ((sexp (cran->guix-package package-name
|
(let ((sexp (cran->guix-package package-name
|
||||||
#:repo (or (assoc-ref opts 'repo) 'cran))))
|
#:repo (or (assoc-ref opts 'repo) 'cran))))
|
||||||
|
Loading…
Reference in New Issue
Block a user