database: Ignore duplicated BuildProducts.

* src/cuirass/database.scm (db-add-build-product): Ignore duplicated
BuildProducts.
This commit is contained in:
Mathieu Othacehe 2021-02-25 09:13:47 +01:00
parent 0b19e82adc
commit 30b6dbb293
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 2 additions and 1 deletions

View File

@ -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."