diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 22:43:56 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 22:43:56 +0100 |
commit | a7f80c9e08dfaad2a6682938f88406ccc07b5732 (patch) | |
tree | 101fddb0e5cb6f55a9e59090ae18fecd2ceab8ab | |
parent | d0f6a1fa04053dfea7a5ad1f03baa16fa9521e1c (diff) |
filter results based on the package name
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | app.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |