From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RWBo3-0003TK-3J for garchives@archives.gentoo.org; Thu, 01 Dec 2011 18:56:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3439221C0ED; Thu, 1 Dec 2011 18:56:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0949121C0ED for ; Thu, 1 Dec 2011 18:56:18 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78F001B400F for ; Thu, 1 Dec 2011 18:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A7B5E80044 for ; Thu, 1 Dec 2011 18:56:17 +0000 (UTC) From: "Paweł Hajdan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paweł Hajdan" Message-ID: <3905490ccb9f80f8a846e2d3cba60479a075b9cf.phajdan.jr@gentoo> Subject: [gentoo-commits] proj/arch-tools:master commit in: / X-VCS-Repository: proj/arch-tools X-VCS-Files: stabilization-candidates.py X-VCS-Directories: / X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: Paweł Hajdan X-VCS-Revision: 3905490ccb9f80f8a846e2d3cba60479a075b9cf Date: Thu, 1 Dec 2011 18:56:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f13c9cad-c702-4245-964f-cfa5f534b596 X-Archives-Hash: c0a318393590743db1e3ae945d9646dd commit: 3905490ccb9f80f8a846e2d3cba60479a075b9cf Author: Pawel Hajdan, Jr gentoo org> AuthorDate: Thu Dec 1 18:55:51 2011 +0000 Commit: Pawe=C5=82 Hajdan gentoo org> CommitDate: Thu Dec 1 18:55:51 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/arch-tools.gi= t;a=3Dcommit;h=3D3905490c Add an --exclude option instead of hardcoding ruby exclusion. --- stabilization-candidates.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stabilization-candidates.py b/stabilization-candidates.py index 44cbe75..62efa04 100755 --- a/stabilization-candidates.py +++ b/stabilization-candidates.py @@ -26,6 +26,7 @@ if __name__ =3D=3D "__main__": parser.add_option("-l", "--limit", dest=3D"limit", type=3D"int", defaul= t=3D-1, help=3D"Limit of filed bugs. Default is no limit.") parser.add_option("--repo", dest=3D"repo", help=3D"Path to portage CVS = repository") parser.add_option("--category", dest=3D"category", help=3D"Portage cate= gory filter (default is all categories)") + parser.add_option("--exclude", dest=3D"exclude", help=3D"Regular expres= sion for excluded packages.") parser.add_option("--file-bugs", dest=3D"file_bugs", action=3D"store_tr= ue", default=3DFalse, help=3D"File stabilization bugs for detected candid= ates. Otherwise (default) the candidates are just displayed.") =20 (options, args) =3D parser.parse_args() @@ -47,8 +48,7 @@ if __name__ =3D=3D "__main__": if options.category and not cp.startswith(options.category + "/"): continue =20 - # Ignore ruby for now, bug #391645. - if 'ruby' in cp: + if options.exclude and re.match(options.exclude, cp): continue =20 best_stable =3D portage.versions.best(portage.portdb.match(cp))