mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
import: elpa: Return multiple values for unknown packages.
Partly fixes <https://bugs.gnu.org/44115>. * guix/import/elpa.scm (elpa->guix-package): Return values. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
6bb92098b4
commit
1fe81b349c
1 changed files with 2 additions and 5 deletions
|
@ -6,6 +6,7 @@
|
|||
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
||||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -379,11 +380,7 @@ (define* (elpa->guix-package name #:key (repo 'gnu) version)
|
|||
"Fetch the package NAME from REPO and produce a Guix package S-expression."
|
||||
(match (fetch-elpa-package name repo)
|
||||
(#false
|
||||
(raise (condition
|
||||
(&message
|
||||
(message (format #false
|
||||
"couldn't find meta-data for ELPA package `~a'."
|
||||
name))))))
|
||||
(values #f '()))
|
||||
(package
|
||||
;; ELPA is known to contain only GPLv3+ code. Other repos may contain
|
||||
;; code under other license but there's no license metadata.
|
||||
|
|
Loading…
Reference in a new issue