aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2020-06-30 11:46:58 +0200
committerMathieu Othacehe <m.othacehe@gmail.com>2020-06-30 15:02:06 +0200
commit83e79f38c8a919d304a0f0cb273a6750d551944a (patch)
treefbf5409e4be4e82708959c0323be9938a20bc8d8
parent4dd9664bf98b6063a1ea2d0f76fffd5414be456a (diff)
downloadcuirass-83e79f38c8a919d304a0f0cb273a6750d551944a.tar
cuirass-83e79f38c8a919d304a0f0cb273a6750d551944a.tar.gz
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.
-rw-r--r--src/cuirass/database.scm2
1 files changed, 1 insertions, 1 deletions
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) ", "