From c0f75ea887de6481eac89151668f6a94cb7dbc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 15 Feb 2024 00:04:50 +0100 Subject: [PATCH] Remove testing --- autoupdate_app_sources/autoupdate_app_sources.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index ce8d77d..bd85a36 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -262,7 +262,6 @@ class AppAutoUpdater: @staticmethod def sha256_of_remote_file(url: str) -> str: print(f"Computing sha256sum for {url} ...") - return "" try: r = requests.get(url, stream=True) m = hashlib.sha256() @@ -481,13 +480,13 @@ class StdoutSwitch: def run_autoupdate_for_multiprocessing(data) -> tuple[bool, str, Any] | None: app, edit, commit, pr = data - # stdoutswitch = StdoutSwitch() + stdoutswitch = StdoutSwitch() try: result = AppAutoUpdater(app).run(edit=edit, commit=commit, pr=pr) if result is not False: return True, app, result except Exception: - # result = stdoutswitch.reset() + result = stdoutswitch.reset() import traceback t = traceback.format_exc() return False, app, f"{result}\n{t}" @@ -510,7 +509,7 @@ def main() -> None: parser.error("--pr requires --commit") # Handle apps or no apps - apps = list(args.apps) if args.apps else ["mobilizon"] # apps_to_run_auto_update_for() + apps = list(args.apps) if args.apps else apps_to_run_auto_update_for() apps_failed = {} apps_updated = {}