2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-cuirass.git synced 2023-12-14 06:03:04 +01:00

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

View file

@ -557,7 +557,7 @@ VALUES ("
"Insert PRODUCT into BuildProducts table." "Insert PRODUCT into BuildProducts table."
(with-db-worker-thread db (with-db-worker-thread db
(sqlite-exec db "\ (sqlite-exec db "\
INSERT INTO BuildProducts (build, type, file_size, checksum, INSERT OR IGNORE INTO BuildProducts (build, type, file_size, checksum,
path) VALUES (" path) VALUES ("
(assq-ref product #:build) ", " (assq-ref product #:build) ", "
(assq-ref product #:type) ", " (assq-ref product #:type) ", "