Skip to content

Commit

Permalink
Revert "fix: log update info once"
Browse files Browse the repository at this point in the history
This reverts commit ca67ef8.
  • Loading branch information
R1kaB3rN committed Jan 9, 2025
1 parent ca67ef8 commit 74b2432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion umu/umu_proton.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def get_umu_proton(env: dict[str, str], session_pools: SessionPools) -> dict[str
os.environ["PROTONPATH"] = str(
UMU_COMPAT.joinpath(os.environ["PROTONPATH"])
)
env["PROTONPATH"] = os.environ["PROTONPATH"]
return env
if _get_latest(env, compatdirs, tmpdirs, assets, session_pools) is env:
return env
Expand Down Expand Up @@ -545,6 +544,9 @@ def _get_delta(
# See https://github.com/python/mypy/issues/12682
is_updated: bool = any(filter(lambda line: build in line, file)) # type: ignore
if is_updated:
log.info("%s is up to date", version)
os.environ["PROTONPATH"] = str(umu_compat.joinpath(version))
env["PROTONPATH"] = os.environ["PROTONPATH"]
return env
except (UnicodeDecodeError, FileNotFoundError):
# Case when the VDF file DNE/or has non-utf-8 chars
Expand Down

0 comments on commit 74b2432

Please sign in to comment.