mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
Merge pull request #3 from HereticWay/fix-check-if-apk-in-present-vers
Fix: Check if apk already exists in present_vers before trying to access it
This commit is contained in:
commit
c38881922d
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ def get_apks(appstate):
|
|||
|
||||
print(f"Chosen required version of {apk} is {required_ver}.")
|
||||
|
||||
if appstate['present_vers'][apk] == required_ver:
|
||||
if apk in appstate['present_vers'] and appstate['present_vers'][apk] == required_ver:
|
||||
print("It's already present on disk, so skipping download.")
|
||||
else:
|
||||
apkpure_dl(apk, apkpure_appname, required_ver,
|
||||
|
|
Loading…
Reference in a new issue