summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2017-11-01 00:54:35 +0200
committerMart Raudsepp <leio@gentoo.org>2017-11-01 00:56:30 +0200
commite0500caab6def51bc04af43c9e17e5bba195d131 (patch)
tree31b603bcb95f67dc6d2a4d7da953aac201826c52
parentx-modular: Pass True, not 'True' to find_packages_in_tree (diff)
downloadgentoo-bumpchecker-e0500caab6def51bc04af43c9e17e5bba195d131.tar.gz
gentoo-bumpchecker-e0500caab6def51bc04af43c9e17e5bba195d131.tar.bz2
gentoo-bumpchecker-e0500caab6def51bc04af43c9e17e5bba195d131.zip
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.
-rwxr-xr-xgnome-bumpchecker.py3
-rw-r--r--modules/clioptions_module.py3
2 files changed, 5 insertions, 1 deletions
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):