From 1c3fea6e50a3c8416ac927e233131c6553e45875 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 5 Apr 2023 17:07:36 +0200 Subject: [PATCH] autoupdate app sources: skip app for which new branch already exists --- tools/autoupdate_app_sources/autoupdate_app_sources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/autoupdate_app_sources/autoupdate_app_sources.py b/tools/autoupdate_app_sources/autoupdate_app_sources.py index 03139d12..630e8ee0 100644 --- a/tools/autoupdate_app_sources/autoupdate_app_sources.py +++ b/tools/autoupdate_app_sources/autoupdate_app_sources.py @@ -210,7 +210,8 @@ class AppAutoUpdater: commit_sha = self.repo.get_branch(self.base_branch).commit.sha self.repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha) except: - pass + print("... Branch already exists, skipping") + return False manifest_new = self.manifest_raw for source, infos in todos.items():