diff options
author | 2011-12-01 19:55:51 +0100 | |
---|---|---|
committer | 2011-12-01 19:55:51 +0100 | |
commit | 3905490ccb9f80f8a846e2d3cba60479a075b9cf (patch) | |
tree | 8982b037690d4ae0142a3d6a8fae5b007a85e79a | |
parent | Check KEYWORDS for all requested arches. (diff) | |
download | arch-tools-3905490ccb9f80f8a846e2d3cba60479a075b9cf.tar.gz arch-tools-3905490ccb9f80f8a846e2d3cba60479a075b9cf.tar.bz2 arch-tools-3905490ccb9f80f8a846e2d3cba60479a075b9cf.zip |
Add an --exclude option instead of hardcoding ruby exclusion.
-rwxr-xr-x | 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__ == "__main__": parser.add_option("-l", "--limit", dest="limit", type="int", default=-1, help="Limit of filed bugs. Default is no limit.") parser.add_option("--repo", dest="repo", help="Path to portage CVS repository") parser.add_option("--category", dest="category", help="Portage category filter (default is all categories)") + parser.add_option("--exclude", dest="exclude", help="Regular expression for excluded packages.") 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.") (options, args) = parser.parse_args() @@ -47,8 +48,7 @@ if __name__ == "__main__": if options.category and not cp.startswith(options.category + "/"): continue - # Ignore ruby for now, bug #391645. - if 'ruby' in cp: + if options.exclude and re.match(options.exclude, cp): continue best_stable = portage.versions.best(portage.portdb.match(cp)) |