From 9ae721d8888fd971961196eef2c95674654d5ce1 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 28 Sep 2022 02:02:13 +0200 Subject: [PATCH] packages/pkgbuild: filter_pkgbuilds(): fix up to_match tracking --- packages/pkgbuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pkgbuild.py b/packages/pkgbuild.py index bb31da2..e0f99d2 100644 --- a/packages/pkgbuild.py +++ b/packages/pkgbuild.py @@ -434,7 +434,7 @@ def filter_pkgbuilds( logging.warn(f"Pkg {pkg.name} matches query {matches[0]} but isn't available for architecture {arch}: {pkg.arches}") continue result += [pkg] - for m in matches: + for m in set(matches).intersection(to_find): to_find.remove(m) if not allow_empty_results: