[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: database: Ignore duplicated BuildProducts.
From: |
Mathieu Othacehe |
Subject: |
branch master updated: database: Ignore duplicated BuildProducts. |
Date: |
Thu, 25 Feb 2021 03:14:26 -0500 |
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 30b6dbb database: Ignore duplicated BuildProducts.
30b6dbb is described below
commit 30b6dbb2939f39e723c89e0a3655126b9f26a723
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Thu Feb 25 09:13:47 2021 +0100
database: Ignore duplicated BuildProducts.
* src/cuirass/database.scm (db-add-build-product): Ignore duplicated
BuildProducts.
---
src/cuirass/database.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index f9bba93..1d309ce 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -633,7 +633,8 @@ path) VALUES ("
(assq-ref product #:type) ", "
(assq-ref product #:file-size) ", "
(assq-ref product #:checksum) ", "
- (assq-ref product #:path) ");")))
+ (assq-ref product #:path) ")
+ON CONFLICT ON CONSTRAINT buildproducts_pkey DO NOTHING;")))
(define (db-get-output path)
"Retrieve the OUTPUT for PATH."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: database: Ignore duplicated BuildProducts.,
Mathieu Othacehe <=