From b0ec519e3da593424b4112601968e7b8d77f92c8 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Thu, 29 Dec 2022 11:45:29 -0500 Subject: [PATCH] wine: fix for updateScript --- pkgs/applications/emulators/wine/sources.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/emulators/wine/sources.nix b/pkgs/applications/emulators/wine/sources.nix index 8a461711edf2..5f0ff19b57ca 100644 --- a/pkgs/applications/emulators/wine/sources.nix +++ b/pkgs/applications/emulators/wine/sources.nix @@ -54,7 +54,7 @@ in rec { updateScript = writeShellScript "update-wine-stable" ('' ${updateScriptPreamble} - major=''${UPDATE_NIX_OLD_VERSION%.*} + major=''${UPDATE_NIX_OLD_VERSION%%.*} latest_stable=$(get_latest_wine_version "$major.0") latest_gecko=$(get_latest_lib_version wine-gecko) @@ -86,7 +86,7 @@ in rec { updateScript = writeShellScript "update-wine-unstable" '' ${updateScriptPreamble} - major=''${UPDATE_NIX_OLD_VERSION%.*} + major=''${UPDATE_NIX_OLD_VERSION%%.*} latest_unstable=$(get_latest_wine_version "$major.x") latest_mono=$(get_latest_lib_version wine-mono)