Do not fail if there is nothing to commit of flathub repository.

This commit is contained in:
Matthieu Gautier 2020-04-10 11:35:21 +02:00
parent af55ffed6d
commit 069aab9a35
1 changed files with 5 additions and 1 deletions

View File

@ -286,7 +286,11 @@ def update_flathub_git():
call(command) call(command)
command = ['git', 'commit', '-m', command = ['git', 'commit', '-m',
'Update to version {}'.format(main_project_versions['kiwix-desktop'])] 'Update to version {}'.format(main_project_versions['kiwix-desktop'])]
call(command) try:
call(command)
except subprocess.CalledProcessError:
# This may fail if there is nothing to commit (a rebuild of the CI for exemple)
pass
command = ['git', 'config', 'remote.origin.pushurl', FLATPAK_GIT_REMOTE] command = ['git', 'config', 'remote.origin.pushurl', FLATPAK_GIT_REMOTE]
call(command) call(command)