[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/20: squash! Do not insert the same directory more than once.
From: |
guix-commits |
Subject: |
10/20: squash! Do not insert the same directory more than once. |
Date: |
Sun, 4 Jun 2023 17:34:41 -0400 (EDT) |
civodul pushed a commit to branch wip-guix-index
in repository guix.
commit 7a778d299470db2cae8804aa7e2cd3a6baeaa309
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun May 21 17:48:46 2023 +0200
squash! Do not insert the same directory more than once.
---
guix/scripts/index.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/index.scm b/guix/scripts/index.scm
index 4ff3433c75..37f1ef9c15 100644
--- a/guix/scripts/index.scm
+++ b/guix/scripts/index.scm
@@ -158,7 +158,7 @@ SELECT id FROM Packages WHERE name = :name AND version =
:version LIMIT 1;"
(define stmt-insert-package
(sqlite-prepare db "\
-INSERT OR REPLACE INTO Packages(name, version, output)
+INSERT OR IGNORE INTO Packages(name, version, output)
VALUES (:name, :version, :output);"
#:cache? #t))
@@ -308,6 +308,7 @@ for each package to insert."
"Index packages entries into FILE from the system manifests."
(call-with-database file
(lambda (db)
+ (info (G_ "traversing local profile manifests...~%"))
(let ((entries (profiles->manifest-entries (all-profiles))))
(insert-packages-with-progress db entries insert-manifest-entry)))))
- 02/20: DRAFT Add 'guix index'., (continued)
- 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, 2023/06/04
- 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 <=
- 14/20: squash! Remove actions; auto-update database when needed., guix-commits, 2023/06/04