gnome3.updateScript: ignore prerelease versions

This commit is contained in:
Jan Tojnar 2018-03-03 06:02:38 +01:00
parent 4e82900063
commit d1092a0811
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -12,8 +12,10 @@ def odd_unstable(version_str, selected):
return True return True
even = version[1] % 2 == 0 even = version[1] % 2 == 0
prerelease = version[1] >= 90
stable = even and not prerelease
if selected == 'stable': if selected == 'stable':
return even return stable
else: else:
return True return True