summaryrefslogtreecommitdiffstats
path: root/bin/lts-cve-triage.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-07-01 07:57:08 +0000
committerGuido Günther <agx@sigxcpu.org>2015-07-01 07:57:08 +0000
commit5e500cdc0df42519920f65d76c6f4c47f4089de3 (patch)
treeb1d922d9ea6d62e8fe3273690f072905572960e6 /bin/lts-cve-triage.py
parent4ecca9984b698358a7ebd8fb3c5dfcff5234a312 (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@35259 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..4ee3b57685 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:
+ 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