summaryrefslogtreecommitdiffstats
path: root/bin/lts-cve-triage.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-06-26 11:47:02 +0000
committerGuido Günther <agx@sigxcpu.org>2015-06-26 11:47:02 +0000
commitc632dfb9f6f271352df47cbfbcc30c12321f5c84 (patch)
treefbf0cd059f28ca94ff8c9ce0c87385da19ecc869 /bin/lts-cve-triage.py
parent71b09fdd6a4ecac98799dfa64e83e1b9bfd2d426 (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-xbin/lts-cve-triage.py10
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')

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