mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
fix: Do not check online when required version is already on disk
This commit is contained in:
parent
941c635c30
commit
a0ef6a5566
1 changed files with 5 additions and 2 deletions
|
@ -139,8 +139,11 @@ def get_apks(appstate):
|
|||
required_ver = min(map(lambda x: Version(x), compatible_vers))
|
||||
print(f"Chosen required version of {app} is {required_ver}.")
|
||||
|
||||
apkpure_dl(apk, apkpure_appname, str(required_ver),
|
||||
hard_version, session, present_vers, flag)
|
||||
if appstate['present_vers'][apk] == str(required_ver):
|
||||
print("It's already present on disk, so skipping download.")
|
||||
else:
|
||||
apkpure_dl(apk, apkpure_appname, str(required_ver),
|
||||
hard_version, session, present_vers, flag)
|
||||
|
||||
present_vers.update({apk: str(required_ver)})
|
||||
|
||||
|
|
Loading…
Reference in a new issue