Skip to content

Commit

Permalink
umu_runtime: remove variable dir each update
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Oct 9, 2024
1 parent dfb2410 commit 42c115f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def _install_umu(

# Move the files to the correct location
source_dir: Path = Path(tmpcache, f"SteamLinuxRuntime_{codename}")
var: Path = UMU_LOCAL.joinpath("var")
log.debug("Source: %s", source_dir)
log.debug("Destination: %s", UMU_LOCAL)

Expand All @@ -170,6 +171,10 @@ def _install_umu(
]
)

if var.is_dir():
log.debug("Removing: %s", var)
thread_pool.submit(rmtree, str(var))

for future in futures:
future.result()

Expand Down

0 comments on commit 42c115f

Please sign in to comment.