summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-08-26 10:42:40 +0200
committerLudovic Courtès <ludo@gnu.org>2017-08-26 10:45:43 +0200
commit72f2b6b77cc4e3d7629bdf34e6daee05398b8de1 (patch)
treee8f147eac2e638d0089897e66f218a6e07e48273 /bootstrap
parent6f85bc04f31ae5853ceaa0bb3e1dedfe8412a189 (diff)
downloadcuirass-72f2b6b77cc4e3d7629bdf34e6daee05398b8de1.tar
cuirass-72f2b6b77cc4e3d7629bdf34e6daee05398b8de1.tar.gz
database: 'db-add-build' is now idempotent.
Fixes <https://bugs.gnu.org/28094>. Reported by Ricardo Wurmus <rekado@elephly.net>. * src/cuirass/database.scm (SQLITE_CONSTRAINT) (SQLITE_CONSTRAINT_PRIMARYKEY): New variables. (db-add-build): Catch 'sqlite-error, and swallow SQLITE_CONSTRAINT_PRIMARYKEY errors. * tests/database.scm ("db-add-build"): New test.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions