commit:     e0500caab6def51bc04af43c9e17e5bba195d131
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 31 22:54:35 2017 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Tue Oct 31 22:56:30 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-bumpchecker.git/commit/?id=e0500caa

gnome: Add a hackish way to force looking at Gentoo stable tree only

The tree configuration seems to come from main make.conf right now, so until
(if ever) we rework that to be better (or be more like x-modular that handles
both at once), add an easy way to generate stable tree reports on ~arch
machines with the existing logic without having to edit make.conf for it.

This allows to see the stabilization status of the current GNOME stable series
in Gentoo via a report generated with -S argument against the appropriate 
version.

 gnome-bumpchecker.py         | 3 ++-
 modules/clioptions_module.py | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnome-bumpchecker.py b/gnome-bumpchecker.py
index c9f6e55..c14694f 100755
--- a/gnome-bumpchecker.py
+++ b/gnome-bumpchecker.py
@@ -38,7 +38,8 @@ if __name__ == '__main__':
             portage_module.find_packages_in_tree(release_packages, \
                                         options.get_arguments().portdir, \
                                         options.get_arguments().all_overlays, \
-                                        options.get_arguments().overlays)
+                                        options.get_arguments().overlays, \
+                                        options.options.stable)
 
     # compare the versions in order to check if we are up to date.
     comparison_result_packages = 
gnome_module.compare_packages(release_packages, \

diff --git a/modules/clioptions_module.py b/modules/clioptions_module.py
index 1175ac8..b56da67 100644
--- a/modules/clioptions_module.py
+++ b/modules/clioptions_module.py
@@ -37,6 +37,9 @@ class Options:
         self.parser.add_option("-a", "--overlay", metavar="OVERLAY",
                            action="append", dest="overlays", default=None,
                            help="Overlay to scan in addition to PORTDIR. 
Specify multiple times to scan more than one overlay.")
+        self.parser.add_option("-S", "--stable",
+                           action="store_true", dest="stable", default=False,
+                           help="Force considering stable versions as latest 
available in Gentoo for the GNOME module.")
 
     def get_arguments(self):
         if (self.options.output == None):

Reply via email to