commit:     d96c56521c0598124ac7415784ab7abd040b1373
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  3 21:35:50 2017 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Fri Mar  3 21:35:50 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-bumpchecker.git/commit/?id=d96c5652

gnome: Remove _isgnome3 special casing

We won't be creating the list for 2.9x releases anymore..

 modules/gnome_module.py | 9 +--------
 1 file changed, 1 insertion(+), 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])
 

Reply via email to