diff options
author | Mathieu Othacehe <m.othacehe@gmail.com> | 2020-06-30 11:46:58 +0200 |
---|---|---|
committer | Mathieu Othacehe <m.othacehe@gmail.com> | 2020-06-30 15:02:06 +0200 |
commit | 83e79f38c8a919d304a0f0cb273a6750d551944a (patch) | |
tree | fbf5409e4be4e82708959c0323be9938a20bc8d8 | |
parent | 4dd9664bf98b6063a1ea2d0f76fffd5414be456a (diff) | |
download | cuirass-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.scm | 2 |
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) ", " |