Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix database being remove in case it was up to date
Baptiste Daroussin committed 10 years ago
commit 9ddd3567d771e1bed143d9302de1cc60cb424598
parent 2425e25
1 file changed +1 -1
modified libpkg/repo/binary/update.c
@@ -572,7 +572,7 @@ cleanup:
			rc = EPKG_FATAL;
	}
	/* restore the previous db in case of failures */
-
	if (rc != EPKG_OK) {
+
	if (rc != EPKG_OK && rc != EPKG_UPTODATE) {
		unlink(name);
		rename(path, name);
	}