Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix logical misprint.
Vsevolod Stakhov committed 13 years ago
commit 674018d5645c717918ef558e5bc79525003b09b9
parent 43840c9
1 file changed +4 -5
modified libpkg/update.c
@@ -621,11 +621,10 @@ pkg_update(const char *name, const char *packagesite, bool force)

	snprintf(repofile, sizeof(repofile), "%s/%s.sqlite", dbdir, name);

-
	if (!force)
-
		if (stat(repofile, &st) != -1) {
-
			t = st.st_mtime;
-
			can_increment = false;
-
		}
+
	if (stat(repofile, &st) != -1)
+
		t = force ? 0 : st.st_mtime;
+
	else
+
		can_increment = false;

	if (t != 0) {
		if (sqlite3_open(repofile, &sqlite) != SQLITE_OK) {