Skip to content

Commit

Permalink
umu_proton: fix mypy lint
Browse files Browse the repository at this point in the history
- Ignore the type. There's an open issue upstream for this, and we can refactor for readability later if desired
  • Loading branch information
R1kaB3rN committed Jan 5, 2025
1 parent 205bca6 commit bc7f83e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion umu/umu_proton.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,14 @@ def _get_delta(
build: str = tarball.removesuffix(".tar.gz")
buildid: Path = umu_compat.joinpath(version, "compatibilitytool.vdf")

log.info("Build: %s", build)
log.debug("Acquired lock '%s'", lockfile)

# Check if we're up to date by doing a simple file check
# Avoids the cost of creating threads and memory-mapped IO
try:
with buildid.open(encoding="utf-8") as file:
is_updated: bool = any(filter(lambda line: build in line, file))
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))
Expand Down

0 comments on commit bc7f83e

Please sign in to comment.