Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Support file:// in pkg add.
Julien Laffaye committed 13 years ago
commit 532a5a9c07abf2df109fbb498f0a98c2695c4a86
parent 45829ed
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);