Skip to content

Commit

Permalink
umu_runtime: allow reinstalling runtime to clean state
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Oct 10, 2024
1 parent 8f81746 commit baf6bae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,21 @@ def setup_umu(

find_obsolete()

# Force a runtime update
if os.environ.get("UMU_RUNTIME_UPDATE") == "1":
log.debug("Forcing update to Runtime Platform")
log.debug("Removing: %s", local)
rmtree(str(local))
local.mkdir(parents=True, exist_ok=True)
with https_connection(host) as client_session:
_restore_umu(
json,
thread_pool,
lambda: local.joinpath("umu").is_file(),
client_session,
)
return

with https_connection(host) as client_session:
_update_umu(local, json, thread_pool, client_session)

Expand Down

0 comments on commit baf6bae

Please sign in to comment.