Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bumpchecker:master commit in: /, modules/
Date: Tue, 31 Oct 2017 22:57:19
Message-Id: 1509490590.e0500caab6def51bc04af43c9e17e5bba195d131.leio@gentoo
1 commit: e0500caab6def51bc04af43c9e17e5bba195d131
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 31 22:54:35 2017 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 31 22:56:30 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-bumpchecker.git/commit/?id=e0500caa
7
8 gnome: Add a hackish way to force looking at Gentoo stable tree only
9
10 The tree configuration seems to come from main make.conf right now, so until
11 (if ever) we rework that to be better (or be more like x-modular that handles
12 both at once), add an easy way to generate stable tree reports on ~arch
13 machines with the existing logic without having to edit make.conf for it.
14
15 This allows to see the stabilization status of the current GNOME stable series
16 in Gentoo via a report generated with -S argument against the appropriate version.
17
18 gnome-bumpchecker.py | 3 ++-
19 modules/clioptions_module.py | 3 +++
20 2 files changed, 5 insertions(+), 1 deletion(-)
21
22 diff --git a/gnome-bumpchecker.py b/gnome-bumpchecker.py
23 index c9f6e55..c14694f 100755
24 --- a/gnome-bumpchecker.py
25 +++ b/gnome-bumpchecker.py
26 @@ -38,7 +38,8 @@ if __name__ == '__main__':
27 portage_module.find_packages_in_tree(release_packages, \
28 options.get_arguments().portdir, \
29 options.get_arguments().all_overlays, \
30 - options.get_arguments().overlays)
31 + options.get_arguments().overlays, \
32 + options.options.stable)
33
34 # compare the versions in order to check if we are up to date.
35 comparison_result_packages = gnome_module.compare_packages(release_packages, \
36
37 diff --git a/modules/clioptions_module.py b/modules/clioptions_module.py
38 index 1175ac8..b56da67 100644
39 --- a/modules/clioptions_module.py
40 +++ b/modules/clioptions_module.py
41 @@ -37,6 +37,9 @@ class Options:
42 self.parser.add_option("-a", "--overlay", metavar="OVERLAY",
43 action="append", dest="overlays", default=None,
44 help="Overlay to scan in addition to PORTDIR. Specify multiple times to scan more than one overlay.")
45 + self.parser.add_option("-S", "--stable",
46 + action="store_true", dest="stable", default=False,
47 + help="Force considering stable versions as latest available in Gentoo for the GNOME module.")
48
49 def get_arguments(self):
50 if (self.options.output == None):