From fd97d41524532c8c9a446612489eefd4e3e52368 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 8 Apr 2021 14:53:50 +0200 Subject: [PATCH] Ensure services are also present within a tag --- bin/app-json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/app-json.py b/bin/app-json.py index 32bc853..ee50fce 100755 --- a/bin/app-json.py +++ b/bin/app-json.py @@ -13,7 +13,7 @@ from os.path import basename, exists, expanduser from pathlib import Path from re import findall, search from shlex import split -from subprocess import check_output, DEVNULL +from subprocess import DEVNULL, check_output from sys import exit from requests import get @@ -200,7 +200,7 @@ def get_app_versions(app_path, cached_apps_json): if service in ("null", "---"): continue - if tag in existing_tags: + if tag in existing_tags and service in cached_apps_json[app_name]["versions"][tag]: log.info(f"Skipping {tag} because we've already processed it") existing_versions = cached_apps_json[app_name]["versions"][tag][service] service_versions[service] = existing_versions