scripts: import: elpa: Unquote-splice package sexp contents.

* guix/scripts/import/elpa.scm (guix-import-elpa): Unquote-splice the contents
of the package sexp so the matched package definition is returned unchanged.

Change-Id: Iaaa7e72390c73c6d6671811fe9ac284d599b44c6
Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
Carlo Zancanaro 2024-03-06 16:38:54 +11:00 committed by Ricardo Wurmus
parent 86552708c3
commit 9d9bb8955a
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -104,7 +104,7 @@ (define-values (package-name version)
#:repo (assoc-ref opts 'repo)))
((or #f '())
(leave (G_ "failed to download meta-data for package '~a'~%") package-name))
(('package etc ...) `(package ,etc))
(('package etc ...) `(package ,@etc))
((? list? sexps) (map
(match-lambda
((and ('package ('name name) . rest) pkg)