Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Relax fetch url to allow file://
Baptiste Daroussin committed 10 years ago
commit baa426571bc15209bf2c4e1a45e47ee102667b67
parent ca7923c
1 file changed +2 -2
modified libpkg/repo/binary/fetch.c
@@ -63,8 +63,8 @@ pkg_repo_binary_get_cached_name(struct pkg_repo *repo, struct pkg *pkg,

	packagesite = pkg_repo_url(repo);

-
	if (strncmp(packagesite, "file://", 7) == 0) {
-
		snprintf(dest, destlen, "%s/%s", packagesite + 7,
+
	if (strncmp(packagesite, "file:/", 6) == 0) {
+
		snprintf(dest, destlen, "%s/%s", packagesite + 6,
		    pkg->repopath);
		return (EPKG_OK);
	}