Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix pkgdb_get_pattern_query() for specifying origins
Bryan Drewery committed 11 years ago
commit 9770c4bf75e7ca63a0db5a5ef0ae593c48574402
parent e9b8524
1 file changed +4 -4
modified libpkg/pkgdb.c
@@ -1511,11 +1511,11 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
	char		*checkuid = NULL;
	const char	*comp = NULL;

-
	if (pattern != NULL)
+
	if (pattern != NULL) {
		checkuid = strchr(pattern, '~');
-
	
-
	if (pattern != NULL && checkuid != NULL)
-
		checkorigin = strchr(pattern, '/');
+
		if (checkuid == NULL)
+
			checkorigin = strchr(pattern, '/');
+
	}

	switch (match) {
	case MATCH_ALL: