Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Distinct the bad ABIs
Baptiste Daroussin committed 13 years ago
commit 63fdf99a5e62fcf5e25fa9cc48fd7818f2458a86
parent 01e16b1
1 file changed +3 -2
modified libpkg/update.c
@@ -246,8 +246,9 @@ pkg_update(const char *name, const char *packagesite, bool force)

	pkg_config_string(PKG_CONFIG_ABI, &myarch);

-
	req = sqlite3_mprintf("select group_concat(arch, ', ') from packages "
-
	    "where arch not GLOB '%q'", myarch);
+
	req = sqlite3_mprintf("select group_concat(arch, ', ') from "
+
	    "(select arch from packages "
+
	    "where arch not GLOB '%q')", myarch);
	if (get_sql_string(sqlite, req, &bad_abis) != EPKG_OK) {
		sqlite3_free(req);
		pkg_emit_error("Unable to query repository");