[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/20: squash! "with-method" -> "method"
From: |
guix-commits |
Subject: |
06/20: squash! "with-method" -> "method" |
Date: |
Sun, 4 Jun 2023 17:34:40 -0400 (EDT) |
civodul pushed a commit to branch wip-guix-index
in repository guix.
commit a20d28489d939923537399c84007877784bdf251
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Apr 2 23:07:57 2023 +0200
squash! "with-method" -> "method"
---
guix/scripts/index.scm | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/guix/scripts/index.scm b/guix/scripts/index.scm
index 0b4746d6c4..108c98dbed 100644
--- a/guix/scripts/index.scm
+++ b/guix/scripts/index.scm
@@ -492,14 +492,14 @@ See --database for customization.\n"))
(format #t "%options: --method: result ~a\n" result))
(match arg
((or "manifests" "store")
- (alist-cons 'with-method arg
- (alist-delete 'with-method result)))
+ (alist-cons 'method (string->symbol arg)
+ (alist-delete 'method result)))
(_
(leave (G_ "~a: unknown indexing method~%"))))))))
(define %default-options
`((database . ,user-database-file)
- (with-method . "manifests")))
+ (method . manifests)))
(define-command (guix-index . args)
(category packaging)
@@ -548,21 +548,21 @@ See --database for customization.\n"))
(alist-delete 'action opts))))))
(with-error-handling
- (let* ((opts (parse-command-line args %options
- (list %default-options)
- #:build-options? #f ;no builds
- #:argument-handler
- parse-sub-command))
- (args (option-arguments opts))
- (action (assoc-ref args 'action))
- (database (assoc-ref args 'database))
- (with-method (assoc-ref args 'with-method)))
+ (let* ((opts (parse-command-line args %options
+ (list %default-options)
+ #:build-options? #f ;no builds
+ #:argument-handler
+ parse-sub-command))
+ (args (option-arguments opts))
+ (action (assoc-ref args 'action))
+ (database (assoc-ref args 'database))
+ (method (assoc-ref args 'method)))
(when debug
(format #t "main: opts: ~a\n" opts)
(format #t "main: args: ~a\n" args)
(format #t "main: action: ~a\n" action)
(format #t "main: database: ~a\n" database)
- (format #t "main: with-method: ~a\n" with-method))
+ (format #t "main: method: ~a\n" method))
(match action
('search
@@ -583,6 +583,6 @@ will browse available packages on your system, which may
take time."))
;; Migrate/initialize db to schema at version application-version
(migrate-schema-to-version database)
;; Finally index packages
- (if (string=? with-method "manifests")
+ (if (eq? method 'manifests)
(index-packages-from-manifests-with-db database)
(index-packages-from-store-with-db database)))))))
- 08/20: squash! Remove debugging statements., (continued)
- 08/20: squash! Remove debugging statements., guix-commits, 2023/06/04
- 12/20: squash! Add one variant of each package (name/version pair)., guix-commits, 2023/06/04
- 13/20: squash! Create database when it doesn't already exist., guix-commits, 2023/06/04
- 16/20: squash! Simplify '--help'., guix-commits, 2023/06/04
- 18/20: squash! Optimize 'insert-package'., guix-commits, 2023/06/04
- 19/20: squash! Show output name except for "out"; remove '-d'., guix-commits, 2023/06/04
- 02/20: DRAFT Add 'guix index'., guix-commits, 2023/06/04
- 03/20: squash! Update test., guix-commits, 2023/06/04
- 05/20: squash! Improve error reporting and i18n., guix-commits, 2023/06/04
- 01/20: store: Tolerate non-existent GC root directories., guix-commits, 2023/06/04
- 06/20: squash! "with-method" -> "method",
guix-commits <=
- 09/20: squash! Choose system-wide database if it's more recent., guix-commits, 2023/06/04
- 11/20: squash! Keep store prefix in database., guix-commits, 2023/06/04
- 15/20: squash! Rename to 'guix locate'., guix-commits, 2023/06/04
- 17/20: squash! Migrate schema when opening., guix-commits, 2023/06/04
- 20/20: squash! Document., guix-commits, 2023/06/04
- 10/20: squash! Do not insert the same directory more than once., guix-commits, 2023/06/04
- 14/20: squash! Remove actions; auto-update database when needed., guix-commits, 2023/06/04