Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not abort if cannot open repository sql db.
Vsevolod Stakhov committed 12 years ago
commit 1a4d0a0349201c599a72d5f4860d65e43ad21551
parent 5ae680e49f7434272e16b11c94308fb2a10ec9f7
1 file changed +3 -0
modified libpkg/pkgdb_repo.c
@@ -413,6 +413,9 @@ pkgdb_repo_close(sqlite3 *sqlite, bool commit)
{
	int retcode = EPKG_OK;

+
	if (sqlite == NULL)
+
		return (retcode);
+

	if (commit) {
		if (pkgdb_transaction_commit(sqlite, NULL) != SQLITE_OK)
			retcode = EPKG_FATAL;