From a7f80c9e08dfaad2a6682938f88406ccc07b5732 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 22:43:56 +0100 Subject: filter results based on the package name Signed-off-by: Olivier Gayot --- app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app.py') diff --git a/app.py b/app.py index a375c29..6753b38 100644 --- a/app.py +++ b/app.py @@ -76,7 +76,10 @@ def index_release(LPUSER, PPA, PACKAGE, RELEASE): arches_set = set() for section in data: - arches_set.add(section["name"].split("/")[1]) + tokens = section["name"].split("/") + if tokens[3] != PACKAGE: + continue + arches_set.add(tokens[1]) arches = list(arches_set) if use_json: @@ -115,6 +118,8 @@ def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH): for info in data: index, suffix = info["name"].rsplit("/", maxsplit=1) + if index.split("/")[3] != PACKAGE: + continue if suffix != "result.tar": continue runs[index] = info -- cgit v1.2.3