Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg: correctly re-fetch meta.conf if it's missing
Kyle Evans committed 5 years ago
commit 1e83bf5a3cadff9a9f91ec66784c81671ee5d3e5
parent 9cab8d6
1 file changed +2 -2
modified libpkg/repo/binary/update.c
@@ -624,8 +624,8 @@ pkg_repo_binary_update(struct pkg_repo *repo, bool force)

		snprintf(filepath, sizeof(filepath), "%s/%s", ctx.dbdir,
			pkg_repo_binary_get_filename(pkg_repo_name(repo)));
-
		if (stat(filepath, &st) != -1) {
-
			if (!got_meta && !force)
+
		if (got_meta && stat(filepath, &st) != -1) {
+
			if (!force)
				t = st.st_mtime;
		}
	}