mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-08 12:35:20 +00:00
ulwgl_dl_util: fix bug when referencing old Proton from cache
- Fixes a logic error by terminating prematurely when referencing an old Proton version that has been saved in the cache
This commit is contained in:
parent
9a425dd784
commit
88a47e3ea0
@ -204,12 +204,14 @@ def _get_from_cache(
|
|||||||
if files and tarball == cache.joinpath(files[1][0]) and use_latest:
|
if files and tarball == cache.joinpath(files[1][0]) and use_latest:
|
||||||
path = tarball
|
path = tarball
|
||||||
name = tarball.name
|
name = tarball.name
|
||||||
elif not use_latest:
|
break
|
||||||
|
if tarball != cache.joinpath(files[1][0]) and not use_latest:
|
||||||
path = tarball
|
path = tarball
|
||||||
name = tarball.name
|
name = tarball.name
|
||||||
print(f"{tarball.name} found in: {cache.as_posix()}")
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
print(f"{name} found in: {path}")
|
||||||
|
|
||||||
if path:
|
if path:
|
||||||
proton_dir: str = name[: name.find(".tar.gz")] # Proton dir
|
proton_dir: str = name[: name.find(".tar.gz")] # Proton dir
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user