fix: Do not check online when required version is already on disk

This commit is contained in:
Sayantan Santra 2024-01-14 08:53:07 -06:00
parent 941c635c30
commit a0ef6a5566
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -139,6 +139,9 @@ def get_apks(appstate):
required_ver = min(map(lambda x: Version(x), compatible_vers))
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),
hard_version, session, present_vers, flag)