guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: database: Ignore BuildProducts duplicates.


From: Mathieu Othacehe
Subject: branch master updated: database: Ignore BuildProducts duplicates.
Date: Tue, 30 Jun 2020 09:02:31 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix-cuirass.

The following commit(s) were added to refs/heads/master by this push:
     new 83e79f3  database: Ignore BuildProducts duplicates.
83e79f3 is described below

commit 83e79f38c8a919d304a0f0cb273a6750d551944a
Author: Mathieu Othacehe <m.othacehe@gmail.com>
AuthorDate: Tue Jun 30 11:46:58 2020 +0200

    database: Ignore BuildProducts duplicates.
    
    Ignore errors when trying to insert an already existing build product.
    
    * src/cuirass/database.scm (db-add-build-product): Ignore insertion errors.
---
 src/cuirass/database.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index a350922..ea56db3 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -557,7 +557,7 @@ VALUES ("
   "Insert PRODUCT into BuildProducts table."
   (with-db-worker-thread db
     (sqlite-exec db "\
-INSERT INTO BuildProducts (build, type, file_size, checksum,
+INSERT OR IGNORE INTO BuildProducts (build, type, file_size, checksum,
 path) VALUES ("
                  (assq-ref product #:build) ", "
                  (assq-ref product #:type) ", "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]