mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 12:18:36 -06:00
fix: Check for existing versions for latest version
This commit is contained in:
parent
ed8e7859e2
commit
c6ea4f8f00
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ def apkpure_dl(apk, appname, version, hard_version, session, present_vers, flag)
|
|||
if version not in [apkpure_version, '0']:
|
||||
print(f"Required version {version} not found in APKPure, choosing version {apkpure_version} instead.")
|
||||
version=apkpure_version
|
||||
try:
|
||||
if present_vers[apk] == version and flag != 'force' and os.path.isfile(apk+'.apk'):
|
||||
print(
|
||||
f"Recommended version {version} of {apk} is already present.")
|
||||
return
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if flag == 'checkonly' and present_vers[apk] != version:
|
||||
print(f"{apk} has an update ({present_vers[apk]} -> {version})")
|
||||
|
|
Loading…
Reference in a new issue