GNU bug report logs -
#63522
[PATCH 0/2] Fix return code of "guix import elpa"
Previous Next
Full log
View this message in rfc822 format
* guix/scripts/import/elpa.scm (guix-import-elpa): Warn when version is
specified.
---
guix/scripts/import/elpa.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/import/elpa.scm b/guix/scripts/import/elpa.scm
index 052b0cc0e7..a71478d3c8 100644
--- a/guix/scripts/import/elpa.scm
+++ b/guix/scripts/import/elpa.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2018 Oleg Pykhalov <go.wigust <at> gmail.com>
;;; Copyright © 2020 Martin Becze <mjbecze <at> riseup.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian <at> mgsn.dev>
+;;; Copyright © 2023 Simon Tournier <zimon.toutoune <at> gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -91,7 +92,11 @@ (define (guix-import-elpa . args)
(_ #f))
(reverse opts))))
(match args
- ((package-name)
+ ((spec)
+ (define-values (package-name version)
+ (package-name->name+version spec))
+ (when version
+ (warning (G_ "this importer does not consider the version~%")))
(if (assoc-ref opts 'recursive)
(with-error-handling
(map (match-lambda
--
2.38.1
This bug report was last modified 2 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.