[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/13: squash! Do not insert the same directory more than once.
From: |
guix-commits |
Subject: |
10/13: squash! Do not insert the same directory more than once. |
Date: |
Sun, 21 May 2023 17:40:24 -0400 (EDT) |
civodul pushed a commit to branch wip-guix-index
in repository guix.
commit c7403b704c5e345c0862e8d95c2e23007b024e02
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)))))
- branch wip-guix-index created (now 5fc794ac94), guix-commits, 2023/05/21
- 06/13: squash! "with-method" -> "method", guix-commits, 2023/05/21
- 03/13: squash! Update test., guix-commits, 2023/05/21
- 05/13: squash! Improve error reporting and i18n., guix-commits, 2023/05/21
- 08/13: squash! Remove debugging statements., guix-commits, 2023/05/21
- 01/13: store: Tolerate non-existent GC root directories., guix-commits, 2023/05/21
- 07/13: squash! Don't insert directory if it's already present., guix-commits, 2023/05/21
- 10/13: squash! Do not insert the same directory more than once.,
guix-commits <=
- 11/13: squash! Keep store prefix in database., guix-commits, 2023/05/21
- 13/13: squash! Create database when it doesn't already exist., guix-commits, 2023/05/21
- 09/13: squash! Choose system-wide database if it's more recent., guix-commits, 2023/05/21
- 12/13: squash! Add one variant of each package (name/version pair)., guix-commits, 2023/05/21
- 02/13: DRAFT Add 'guix index'., guix-commits, 2023/05/21
- 04/13: squash! "--db-path" -> "--database"., guix-commits, 2023/05/21