git-update: Close cursor before closing database
commit29625e074472b6546e7433e9b72a3b907abd06ff
authorLukas Fleischer <lfleischer@archlinux.org>
Mon, 22 Aug 2016 06:12:07 +0000 (22 08:12 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Mon, 22 Aug 2016 06:16:26 +0000 (22 08:16 +0200)
tree27930a2d1944e2e8ccff57080254365240963b17
parentc7616311810ae4817fc4b0585b5ef335e6273dbb
git-update: Close cursor before closing database

When using SQLite as backend, we need to close the cursor before closing
the database to avoid the following error:

    sqlite3.OperationalError: unable to close due to unfinalized statements or unfinished backups

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/git-update.py
git-interface/test/t0003-update.sh