mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 12:48:36 -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,6 +139,9 @@ def get_apks(appstate):
|
||||||
required_ver = min(map(lambda x: Version(x), compatible_vers))
|
required_ver = min(map(lambda x: Version(x), compatible_vers))
|
||||||
print(f"Chosen required version of {app} is {required_ver}.")
|
print(f"Chosen required version of {app} is {required_ver}.")
|
||||||
|
|
||||||
|
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),
|
apkpure_dl(apk, apkpure_appname, str(required_ver),
|
||||||
hard_version, session, present_vers, flag)
|
hard_version, session, present_vers, flag)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue