Skip to content

Commit

Permalink
umu_run: refactor file locking
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Dec 24, 2024
1 parent c57ef17 commit 580361c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from subprocess import Popen
from typing import Any

from filelock import FileLock
from urllib3 import PoolManager, Retry
from urllib3.exceptions import MaxRetryError, NewConnectionError
from urllib3.exceptions import TimeoutError as TimeoutErrorUrllib3
Expand Down Expand Up @@ -54,6 +53,7 @@
get_library_paths,
has_umu_setup,
is_installed_verb,
unix_flock,
xdisplay,
)

Expand Down Expand Up @@ -856,7 +856,7 @@ def umu_run(args: Namespace | tuple[str, list[str]]) -> int:
UMU_LOCAL.mkdir(parents=True, exist_ok=True)

# Prepare the prefix
with FileLock(f"{UMU_LOCAL}/pfx.lock"):
with unix_flock(f"{UMU_LOCAL}/pfx.lock"):
setup_pfx(env["WINEPREFIX"])

# Configure the environment
Expand Down

0 comments on commit 580361c

Please sign in to comment.