diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-06-26 11:47:02 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-06-26 11:47:02 +0000 |
commit | 90d1a11d73218c038a21090d057cebadf21ffc90 (patch) | |
tree | 082717bd6ed1e01b546cddf2dfcdad0303fd5395 /bin/lts-cve-triage.py | |
parent | 952d29d9ba86b9c54624a325a52200a09146cc68 (diff) |
lts-cve-triage: allow to skip packages already in dla-needed.txt
With lots of packages in dla-needed.txt it's easier to focus on CVEs of
packages that are not being worked on at all.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@35170 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/lts-cve-triage.py')
-rwxr-xr-x | bin/lts-cve-triage.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py index b396f80b43..3531a393dd 100755 --- a/bin/lts-cve-triage.py +++ b/bin/lts-cve-triage.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this file. If not, see <https://www.gnu.org/licenses/>. +import argparse import collections from tracker_data import TrackerData, RELEASES @@ -39,6 +40,12 @@ LIST_NAMES = ( lists = collections.defaultdict(lambda: collections.defaultdict(lambda: [])) +parser = argparse.ArgumentParser( + description='Find CVEs to triage') +parser.add_argument('--skip-dla-needed', action='store_true', + help='Skip packages already in dla-needed.txt') +args = parser.parse_args() + def add_to_list(key, pkg, issue): assert key in [l[0] for l in LIST_NAMES] @@ -46,6 +53,9 @@ def add_to_list(key, pkg, issue): for pkg in tracker.iterate_packages(): + if args.skip_dla_needed and pkg in tracker.dla_needed.keys(): + continue + for issue in tracker.iterate_pkg_issues(pkg): status_in_lts = issue.get_status('lts') status_in_next_lts = issue.get_status('next_lts') |