refactor(main.py): remove unneeded code for pushing
This commit is contained in:
parent
b53517eaac
commit
1f7c1a7358
1 changed files with 0 additions and 5 deletions
|
@ -2,7 +2,6 @@ import urllib.request
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
import certificates
|
import certificates
|
||||||
import git
|
|
||||||
from sources import ApkRelease, fdroid_recommended_release
|
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.truncate()
|
||||||
version_code_file.close()
|
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:
|
elif version_code > release.version_code:
|
||||||
print('{} ahead of suggested version ({} > {})'.format(module, version_code, release.version_code))
|
print('{} ahead of suggested version ({} > {})'.format(module, version_code, release.version_code))
|
||||||
elif version_code == release.version_code:
|
elif version_code == release.version_code:
|
||||||
print('{} up to date.'.format(module))
|
print('{} up to date.'.format(module))
|
||||||
|
|
||||||
fdroid_main_repo = 'https://www.f-droid.org/repo'
|
|
||||||
fdroid_divestos_repo = 'https://divestos.org/fdroid/official'
|
fdroid_divestos_repo = 'https://divestos.org/fdroid/official'
|
||||||
|
|
||||||
update_if_needed('MulchWebview', fdroid_recommended_release(fdroid_divestos_repo, 'us.spotco.mulch_wv'))
|
update_if_needed('MulchWebview', fdroid_recommended_release(fdroid_divestos_repo, 'us.spotco.mulch_wv'))
|
||||||
|
|
Loading…
Reference in a new issue