Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Ignore checks origin without / when checking pkg version against the ports tree
Baptiste Daroussin committed 8 years ago
commit 326128dfc72326fd4d5149c41eef68855ddf0718
parent 983eb72
1 file changed +6 -0
modified src/version.c
@@ -673,6 +673,12 @@ validate_origin(const char *portsdir, const char *origin)
	char		 categorypath[MAXPATHLEN];
	khint_t		 k;

+
	/* If the origin does not contain a / ignore it like for
+
	 * "base"
+
	 */
+
	if (strchr(origin, '/') == NULL)
+
		return (false);
+

	snprintf(categorypath, MAXPATHLEN, "%s/%s", portsdir, origin);

	buf = strrchr(categorypath, '/');