mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
gnome3.updateScript: ignore prerelease versions
This commit is contained in:
parent
4e82900063
commit
d1092a0811
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user