mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
autoupdate app sources: skip app for which new branch already exists
This commit is contained in:
parent
09a243330b
commit
1c3fea6e50
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,8 @@ class AppAutoUpdater:
|
||||||
commit_sha = self.repo.get_branch(self.base_branch).commit.sha
|
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)
|
self.repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha)
|
||||||
except:
|
except:
|
||||||
pass
|
print("... Branch already exists, skipping")
|
||||||
|
return False
|
||||||
|
|
||||||
manifest_new = self.manifest_raw
|
manifest_new = self.manifest_raw
|
||||||
for source, infos in todos.items():
|
for source, infos in todos.items():
|
||||||
|
|
Loading…
Add table
Reference in a new issue