From 2b09c824d8c41a97e871323bcc7d77cf3aa1ebca Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 12 Feb 2016 20:58:12 +0000 Subject: filter-active.py: Set sane defaults for dirs and notstates The script is called filter-active, so clearly the default directory should be 'active'. We usually only want to see issues that need fixing, so if no states are specified for inclusion or exclusion then exclude 'N/A', 'ignored' and 'released'. git-svn-id: svn+ssh://svn.debian.org/svn/kernel-sec@4151 e094ebfe-e918-0410-adfb-c712417f3574 --- scripts/filter-active.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/filter-active.py b/scripts/filter-active.py index 28d494b2..1d2470e9 100755 --- a/scripts/filter-active.py +++ b/scripts/filter-active.py @@ -100,8 +100,11 @@ if __name__ == '__main__': (options, args) = parser.parse_args() if not options.dirs: - sys.stderr.write("Error: No dirs specified.\n") - sys.exit(1) + print('I: Listing issues in active directory') + options.dirs = ['active'] + if not options.states and not options.notstates: + print('I: Excluding N/A, ignored and released issues') + options.notstates = ['N/A', 'ignored', 'released'] issues = [] for d in options.dirs: issues = issues + get_issues(d) -- cgit v1.2.3