[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: upgrade: Allow several regexps.
From: |
guix-commits |
Subject: |
branch master updated: upgrade: Allow several regexps. |
Date: |
Tue, 01 Dec 2020 05:34:47 -0500 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 8697161 upgrade: Allow several regexps.
8697161 is described below
commit 86971616c139597ffa9e20acc75533ff90176450
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Sat Nov 28 21:32:45 2020 +0100
upgrade: Allow several regexps.
Fixes <https://bugs.gnu.org/44928>.
Reported by Luis Felipe <luis.felipe.la@protonmail.com>.
* guix/scripts/upgrade.scm (guix-upgrade): Allow several regexps and remove
"extraneous arguement" check.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
guix/scripts/upgrade.scm | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/guix/scripts/upgrade.scm b/guix/scripts/upgrade.scm
index dcbcb2a..beb59cb 100644
--- a/guix/scripts/upgrade.scm
+++ b/guix/scripts/upgrade.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -74,15 +75,10 @@ This is an alias for 'guix package -u'.\n"))
(synopsis "upgrade packages to their latest version")
(define (handle-argument arg result arg-handler)
- ;; Accept at most one non-option argument, and treat it as an upgrade
- ;; regexp.
- (match (assq-ref result 'upgrade)
- (#f
- (values (alist-cons 'upgrade arg
- (alist-delete 'upgrade result))
- arg-handler))
- (_
- (leave (G_ "~A: extraneous argument~%") arg))))
+ ;; Treat non-option arguments as upgrade regexps.
+ (values (alist-cons 'upgrade arg
+ (delete '(upgrade . #f) result))
+ arg-handler))
(define opts
(parse-command-line args %options
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: upgrade: Allow several regexps.,
guix-commits <=