refactor(main.py): remove unneeded code for pushing

This commit is contained in:
matt1432 2023-03-16 16:23:23 -04:00
parent b53517eaac
commit 1f7c1a7358

View file

@ -2,7 +2,6 @@ import urllib.request
from os import path
import certificates
import git
from sources import ApkRelease, fdroid_recommended_release
@ -28,15 +27,11 @@ def update_if_needed(module: str, release: ApkRelease):
version_code_file.truncate()
version_code_file.close()
print('commit and push...')
# git.add_commit_push(module_dir, 'Update {} to {}'.format(module, release.version_name))
elif version_code > release.version_code:
print('{} ahead of suggested version ({} > {})'.format(module, version_code, release.version_code))
elif version_code == release.version_code:
print('{} up to date.'.format(module))
fdroid_main_repo = 'https://www.f-droid.org/repo'
fdroid_divestos_repo = 'https://divestos.org/fdroid/official'
update_if_needed('MulchWebview', fdroid_recommended_release(fdroid_divestos_repo, 'us.spotco.mulch_wv'))