Skip to content

Commit

Permalink
umu_runtime: don't remove any of our lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Oct 11, 2024
1 parent c75cd07 commit e08df1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def _update_umu(
log.debug("Acquired file lock '%s'", lock.lock_file)
for file in local.glob("*"):
if file.is_dir():
if file.is_file() and file != lock.lock_file:
rmtree(str(file))
if file.is_file() and not file.name.endswith(".lock"):
file.unlink()
_restore_umu(
json,
Expand Down Expand Up @@ -301,8 +301,8 @@ def _update_umu(
log.debug("Acquired file lock '%s'", lock.lock_file)
for file in local.glob("*"):
if file.is_dir():
if file.is_file() and file != lock.lock_file:
rmtree(str(file))
if file.is_file() and not file.name.endswith(".lock"):
file.unlink()
_restore_umu(
json,
Expand Down

0 comments on commit e08df1b

Please sign in to comment.