Gentoo Archives: gentoo-commits

From: "Paweł Hajdan" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/arch-tools:master commit in: /
Date: Thu, 01 Dec 2011 18:56:27
Message-Id: 3905490ccb9f80f8a846e2d3cba60479a075b9cf.phajdan.jr@gentoo
1 commit: 3905490ccb9f80f8a846e2d3cba60479a075b9cf
2 Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 18:55:51 2011 +0000
4 Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 18:55:51 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/arch-tools.git;a=commit;h=3905490c
7
8 Add an --exclude option instead of hardcoding ruby exclusion.
9
10 ---
11 stabilization-candidates.py | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/stabilization-candidates.py b/stabilization-candidates.py
15 index 44cbe75..62efa04 100755
16 --- a/stabilization-candidates.py
17 +++ b/stabilization-candidates.py
18 @@ -26,6 +26,7 @@ if __name__ == "__main__":
19 parser.add_option("-l", "--limit", dest="limit", type="int", default=-1, help="Limit of filed bugs. Default is no limit.")
20 parser.add_option("--repo", dest="repo", help="Path to portage CVS repository")
21 parser.add_option("--category", dest="category", help="Portage category filter (default is all categories)")
22 + parser.add_option("--exclude", dest="exclude", help="Regular expression for excluded packages.")
23 parser.add_option("--file-bugs", dest="file_bugs", action="store_true", default=False, help="File stabilization bugs for detected candidates. Otherwise (default) the candidates are just displayed.")
24
25 (options, args) = parser.parse_args()
26 @@ -47,8 +48,7 @@ if __name__ == "__main__":
27 if options.category and not cp.startswith(options.category + "/"):
28 continue
29
30 - # Ignore ruby for now, bug #391645.
31 - if 'ruby' in cp:
32 + if options.exclude and re.match(options.exclude, cp):
33 continue
34
35 best_stable = portage.versions.best(portage.portdb.match(cp))