summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:43:56 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:43:56 +0100
commita7f80c9e08dfaad2a6682938f88406ccc07b5732 (patch)
tree101fddb0e5cb6f55a9e59090ae18fecd2ceab8ab
parentd0f6a1fa04053dfea7a5ad1f03baa16fa9521e1c (diff)
filter results based on the package name
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--app.py7
1 files changed, 6 insertions, 1 deletions
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