diff options
-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 |