Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fixes infinite recursive fetch, thanks "az|_" from IRC to find what causes this.
Roman Naumann committed 12 years ago
commit e626ccb772d9d95e59d39109cf2dfc94a7437bac
parent b4beb94
1 file changed +1 -1
modified libpkg/pkg_repo.c
@@ -180,7 +180,7 @@ pkg_repo_fetch_package(struct pkg *pkg)
	checksum:
	/*	checksum calculation is expensive, if size does not
		match, skip it and assume failed checksum. */
-
	if (stat(path, &st) == -1 || pkgsize != st.st_size) {
+
	if (stat(dest, &st) == -1 || pkgsize != st.st_size) {
		pkg_emit_error("cached package %s-%s: "
			"size mismatch, fetching from remote",
			name, version);