Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix cache rebuild without +MANIFEST
Philippe Pepiot committed 15 years ago
commit b19a2edbd6f39e73bac637e9b18e433de662f4cd
parent b2c623df107d80c6bb33cd0fa9acdd3d2a558beb
1 file changed +1 -4
modified libpkg/pkgdb_cache.c
@@ -130,11 +130,8 @@ pkg_from_dir(struct pkgdb *db, time_t cache_mtime, const char *pkg_dbdir, char *

	if (stat(manifestpath, &st) == -1) {
		warn("stat(%s):", manifestpath);
-
		return NULL;
	}
-

-
	/* compare with manifest mtime */
-
	if (st.st_mtime >= cache_mtime &&
+
	else if (st.st_mtime >= cache_mtime && /* compare with manifest mtime */
			cdb_fileno(&db->db) != -1 &&
			(idx = pkgdb_query(db, "%s", pkgname)) != NULL &&
			(pkg = pkgdb_pkg_query(db, *idx)) != NULL) { /* jackpot */