@@ -55,6 +55,7 @@ def get_umu_proton(
55
55
# No internet and compat tool is empty, just return and raise an
56
56
# exception from the caller
57
57
environ ["PROTONPATH" ] = ""
58
+
58
59
return env
59
60
60
61
@@ -78,6 +79,7 @@ def _fetch_releases() -> list[tuple[str, str]]:
78
79
) as resp :
79
80
if resp .status != 200 :
80
81
return files
82
+
81
83
for release in loads (resp .read ().decode ("utf-8" )):
82
84
if not release .get ("assets" ):
83
85
continue
@@ -319,7 +321,6 @@ def _get_latest(
319
321
if file .name .startswith (("UMU-Proton" , "ULWGL-Proton" ))
320
322
]
321
323
tar_path : Path = tmp .joinpath (tarball )
322
-
323
324
# Ideally, an in-place differential update would be
324
325
# performed instead for this job but this will do for now
325
326
log .debug ("Extracting %s -> %s" , tar_path , steam_compat )
@@ -343,15 +344,13 @@ def _get_latest(
343
344
except ValueError :
344
345
log .exception ("ValueError" )
345
346
tarball : str = files [1 ][0 ]
346
-
347
347
# Digest mismatched
348
348
# Since we do not want the user to use a suspect file, delete it
349
349
tmp .joinpath (tarball ).unlink (missing_ok = True )
350
350
return None
351
351
except KeyboardInterrupt :
352
352
tarball : str = files [1 ][0 ]
353
353
proton_dir : str = tarball [: tarball .find (".tar.gz" )] # Proton dir
354
-
355
354
# Exit cleanly
356
355
# Clean up extracted data and cache to prevent corruption/errors
357
356
_cleanup (tarball , proton_dir , tmp , steam_compat )
0 commit comments