From a26a0d27d7ac3e5d620ef408b6cd5377c5c4881f Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Mon, 5 Apr 2021 12:31:45 +0200 Subject: [PATCH] Reduce noise from app-json.py --- bin/app-json.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/app-json.py b/bin/app-json.py index 0fbf1ac..32bc853 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 +from subprocess import check_output, DEVNULL from sys import exit from requests import get @@ -31,6 +31,8 @@ REPOS_TO_SKIP = ( "organising", "pyabra", "stack-ssh-deploy", + "radicle-seed-node", + "coturn" ) log = getLogger(__name__) @@ -38,10 +40,9 @@ basicConfig() log.setLevel(DEBUG) -def _run_cmd(cmd, shell=False): +def _run_cmd(cmd, shell=False, **kwargs): """Run a shell command.""" args = [split(cmd)] - kwargs = {} if shell: args = [cmd] @@ -187,7 +188,8 @@ def get_app_versions(app_path, cached_apps_json): existing_tags = [] for tag in tags: - _run_cmd(f"git checkout {tag}") + _run_cmd(f"git checkout {tag}", + stderr=DEVNULL) services_cmd = f"{YQ_PATH} e '.services | keys | .[]' compose*.yml" services = _run_cmd(services_cmd, shell=True).split()