Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_repo_binary_query: Remove DISTINCT from the SQL query.
Gleb Popov committed 3 years ago
commit 5a94cdecbe1d290a0c1438a198c10e5ef55cd4e3
parent 2775518
1 file changed +2 -2
modified libpkg/repo/binary/query.c
@@ -103,7 +103,7 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
	char *sql = NULL;
	const char	*comp = NULL;
	char basesql_quick[] = ""
-
		"SELECT DISTINCT p.id, origin, p.name, p.name as uniqueid, version, comment, "
+
		"SELECT p.id, origin, p.name, p.name as uniqueid, version, comment, "
		"prefix, desc, arch, maintainer, www, "
		"licenselogic, flatsize, pkgsize, "
		"cksum, manifestdigest, path AS repopath, '%s' AS dbname "
@@ -118,7 +118,7 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
		"   LEFT JOIN annotation value ON pkg_annotation.value_id = value.annotation_id "
		"   WHERE tag.annotation = 'flavor') "

-
		"SELECT DISTINCT p.id, origin, p.name, p.name as uniqueid, version, comment, "
+
		"SELECT p.id, origin, p.name, p.name as uniqueid, version, comment, "
		"prefix, desc, arch, maintainer, www, "
		"licenselogic, flatsize, pkgsize, "
		"cksum, manifestdigest, path AS repopath, '%s' AS dbname "