diff options
author | 2017-03-03 23:35:50 +0200 | |
---|---|---|
committer | 2017-03-03 23:35:50 +0200 | |
commit | d96c56521c0598124ac7415784ab7abd040b1373 (patch) | |
tree | 48b87f1a5da34f183d419479d7478cb7f33181e4 | |
parent | gnome: Remove the old latest_versions_* vars that won't work (diff) | |
download | gentoo-bumpchecker-d96c56521c0598124ac7415784ab7abd040b1373.tar.gz gentoo-bumpchecker-d96c56521c0598124ac7415784ab7abd040b1373.tar.bz2 gentoo-bumpchecker-d96c56521c0598124ac7415784ab7abd040b1373.zip |
gnome: Remove _isgnome3 special casing
We won't be creating the list for 2.9x releases anymore..
-rw-r--r-- | modules/gnome_module.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 205d96e..41d5702 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -11,11 +11,6 @@ import clioptions_module DEBUG = False class GNOME: - def _isgnome3(self, gnome_release_list): - if int(gnome_release_list[0]) == 2 and int(gnome_release_list[1]) > 90: - return True - return False - def __init__(self, nextrev=False): options = clioptions_module.Options() args = options.get_arguments() @@ -27,9 +22,7 @@ class GNOME: # gnome_release is the major release number the development is leading up to or is part of. E.g, 2.21.5 will turn to 2.22 and 2.22.2 becomes 2.22 # This is used in latest versions list fetching URL construction gnome_release_list = args.release_number.split(".") - if self._isgnome3(gnome_release_list): - gnome_release_list = ['3', '0'] - elif int(gnome_release_list[1]) % 2 != 0: + if int(gnome_release_list[1]) % 2 != 0: gnome_release_list[1] = str(int(gnome_release_list[1]) + 1) self.gnome_release = ".".join(gnome_release_list[:2]) |