From ddaa873f3ffab57f5a601c70dce934d2070d5e30 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Wed, 1 May 2024 12:53:12 -0700 Subject: [PATCH] umu_dl_util: don't sort the Proton builds - There isn't any reason to sort them as the launcher is not handling any of the previous builds differently. All of the previous UMU-Proton and ULWGL-Proton builds will just be deleted in behalf of the user. Previous GE-Proton builds will remain. --- umu/umu_dl_util.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/umu/umu_dl_util.py b/umu/umu_dl_util.py index 60aa94b3..84d80bc0 100644 --- a/umu/umu_dl_util.py +++ b/umu/umu_dl_util.py @@ -279,13 +279,11 @@ def _get_latest( # Set latest UMU/GE-Proton if version == "UMU-Proton": log.debug("Updating UMU-Proton") - protons: list[Path] = sorted( # Previous stable builds - [ - file - for file in steam_compat.glob("*") - if file.name.startswith(("UMU-Proton", "ULWGL-Proton")) - ] - ) + protons: list[Path] = [ # Previous stable builds + file + for file in steam_compat.glob("*") + if file.name.startswith(("UMU-Proton", "ULWGL-Proton")) + ] tar_path: Path = tmp.joinpath(tarball) # Ideally, an in-place differential update would be