summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <benh@debian.org>2016-02-12 20:58:12 +0000
committerBen Hutchings <benh@debian.org>2016-02-12 20:58:12 +0000
commit2b09c824d8c41a97e871323bcc7d77cf3aa1ebca (patch)
tree2cad4b6125b726ed01977b5efeb77930b422856b /scripts
parentd17d91642cd82f3b3801a224c4cb59c455acac21 (diff)
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/filter-active.py7
1 files changed, 5 insertions, 2 deletions
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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy