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:
parent
4dd9664bf9
commit
83e79f38c8
|
@ -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) ", "
|
||||||
|
|
Loading…
Reference in a new issue