@@ -101,10 +101,7 @@ def _install_umu(
101
101
CLIENT_SESSION .close ()
102
102
raise HTTPException (err )
103
103
104
- log .console (
105
- f"Downloading latest steamrt { codename } (public beta),"
106
- "please wait..."
107
- )
104
+ log .console (f"Downloading latest steamrt { codename } , please wait..." )
108
105
with tmp .joinpath (archive ).open (mode = "ab" ) as file :
109
106
chunk_size : int = 64 * 1024 # 64 KB
110
107
while True :
@@ -120,7 +117,7 @@ def _install_umu(
120
117
CLIENT_SESSION .close ()
121
118
raise ValueError (err )
122
119
123
- log .console (f"steamrt { codename } : SHA256 is OK" )
120
+ log .console (f"{ archive } : SHA256 is OK" )
124
121
CLIENT_SESSION .close ()
125
122
126
123
# Open the tar file and move the files
@@ -222,6 +219,7 @@ def _update_umu(
222
219
log .console ("Restoring Runtime Platform..." )
223
220
_install_umu (json , thread_pool )
224
221
return
222
+
225
223
log .debug ("Runtime: %s" , runtime .name )
226
224
log .debug ("Codename: %s" , codename )
227
225
@@ -262,7 +260,6 @@ def _update_umu(
262
260
263
261
CLIENT_SESSION .request ("GET" , url )
264
262
resp = CLIENT_SESSION .getresponse ()
265
- log .debug ("Restoring VERSIONS.txt" )
266
263
267
264
# Handle the redirect
268
265
if resp .status == 301 :
@@ -301,7 +298,7 @@ def _update_umu(
301
298
sha256 (resp .read ()).digest ()
302
299
!= sha256 (local .joinpath ("VERSIONS.txt" ).read_bytes ()).digest ()
303
300
):
304
- log .console (f "Updating { codename } to latest..." )
301
+ log .console ("Updating steamrt to latest..." )
305
302
_install_umu (json , thread_pool )
306
303
log .debug ("Removing: %s" , runtime )
307
304
rmtree (runtime .as_posix ())
@@ -394,16 +391,16 @@ def check_runtime(src: Path, json: dict[str, Any]) -> int:
394
391
[file for file in src .glob (f"{ codename } *" ) if file .is_dir ()]
395
392
)
396
393
except ValueError :
397
- log .warning ("%s validation failed" , codename )
394
+ log .warning ("steamrt validation failed" )
398
395
log .warning ("Could not find runtime in '%s'" , src )
399
396
return ret
400
397
401
398
if not pv_verify .is_file ():
402
- log .warning ("%s validation failed" , codename )
399
+ log .warning ("steamrt validation failed" )
403
400
log .warning ("File does not exist: '%s'" , pv_verify )
404
401
return ret
405
402
406
- log .console (f"Verifying integrity of steamrt { codename } ..." )
403
+ log .console (f"Verifying integrity of { runtime . name } ..." )
407
404
ret = run (
408
405
[
409
406
pv_verify .as_posix (),
@@ -415,9 +412,9 @@ def check_runtime(src: Path, json: dict[str, Any]) -> int:
415
412
).returncode
416
413
417
414
if ret :
418
- log .warning ("%s validation failed" , codename )
415
+ log .warning ("steamrt validation failed" )
419
416
log .debug ("%s exited with the status code: %s" , pv_verify .name , ret )
420
417
return ret
421
- log .console (f"steamrt { codename } : mtree is OK" )
418
+ log .console (f"{ runtime . name } : mtree is OK" )
422
419
423
420
return ret
0 commit comments