Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Support file:// in pkg add.
Julien Laffaye committed 13 years ago
commit 532a5a9c07abf2df109fbb498f0a98c2695c4a86
parent 45829ed4f6965b0b4287ac277c89ecc1469fcfb9
1 file changed +2 -1
modified pkg/add.c
@@ -44,7 +44,8 @@ is_url(const char * const pattern)
{
	if (strncmp(pattern, "http://", 7) == 0 ||
		strncmp(pattern, "https://", 8) == 0 ||
-
		strncmp(pattern, "ftp://", 6) == 0)
+
		strncmp(pattern, "ftp://", 6) == 0 ||
+
		strncmp(pattern, "file://", 7) == 0)
		return (EPKG_OK);

	return (EPKG_FATAL);