summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstabilization-candidates.py4
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))