Commit 29625e07 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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's avatarLukas Fleischer <>
parent c7616311
......@@ -402,4 +402,5 @@ repo.create_reference('refs/namespaces/' + pkgbase + '/HEAD', sha1_new, True)
update_notify(conn, user, pkgbase_id)
# Close the database.
......@@ -368,7 +368,7 @@ test_expect_success 'Pushing a blacklisted package.' '
test_cmp expected actual
test_expect_failure 'Pushing a blacklisted package as Trusted User.' '
test_expect_success 'Pushing a blacklisted package as Trusted User.' '
old=$(git -C aur.git rev-parse HEAD) &&
test_when_finished "git -C aur.git reset --hard $old" &&
echo "pkgname = forbidden" >>aur.git/.SRCINFO &&
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment