[kernel-sec-discuss] r4151 - scripts
Ben Hutchings
benh at moszumanska.debian.org
Fri Feb 12 20:58:12 UTC 2016
Author: benh
Date: 2016-02-12 20:58:12 +0000 (Fri, 12 Feb 2016)
New Revision: 4151
Modified:
scripts/filter-active.py
Log:
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'.
Modified: scripts/filter-active.py
===================================================================
--- scripts/filter-active.py 2016-02-11 16:19:47 UTC (rev 4150)
+++ scripts/filter-active.py 2016-02-12 20:58:12 UTC (rev 4151)
@@ -100,8 +100,11 @@
(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)
More information about the kernel-sec-discuss
mailing list