import: opam: Warn instead of leave when fetching fails.

* guix/import/opam.scm (opam-featch): Warn instead of leave when fetching
fails.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
zimoun 2021-11-16 11:12:34 +01:00 committed by Julien Lepiller
parent 42070c199a
commit b5d51bb19e
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -318,7 +318,7 @@ (define* (opam-fetch name #:optional (repositories-specs '("opam")))
(_ others)))
#f
(filter-map get-opam-repository repositories-specs))
(leave (G_ "package '~a' not found~%") name)))
(warning (G_ "opam: package '~a' not found~%") name)))
(define* (opam->guix-package name #:key (repo '()) version)
"Import OPAM package NAME from REPOSITORIES (a list of names, URLs or local