From 440d84cfb1c7a8c31d68e1ebf20750c4ef22f3b1 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 20 Nov 2018 21:53:55 +0100 Subject: [PATCH] gnome3.updateScript: improve pre-release detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously all versions with minor >= 90 were considered pre-release, which failed to consider versions like 0.100. Let’s limit the range to 90–99 and 900–999. --- pkgs/desktops/gnome-3/find-latest-version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/desktops/gnome-3/find-latest-version.py b/pkgs/desktops/gnome-3/find-latest-version.py index d9155fe23930..b0359f799699 100644 --- a/pkgs/desktops/gnome-3/find-latest-version.py +++ b/pkgs/desktops/gnome-3/find-latest-version.py @@ -12,7 +12,7 @@ def odd_unstable(version_str, selected): return True even = version[1] % 2 == 0 - prerelease = version[1] >= 90 + prerelease = (version[1] >= 90 and version[1] < 100) or (version[1] >= 900 and version[1] < 1000) stable = even and not prerelease if selected == 'stable': return stable