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.
This commit is contained in:
Mathieu Othacehe 2020-06-30 11:46:58 +02:00
parent 4dd9664bf9
commit 83e79f38c8
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 1 additions and 1 deletions

View File

@ -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) ", "