From 4bd920a1c74f51d5142710cf41e95026af6cea20 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Wed, 31 May 2017 18:42:37 +0000 Subject: There were CVEs assigned now with 7 digits in second part after year Increase the padding and leave one extra space left. git-svn-id: svn+ssh://svn.debian.org/svn/kernel-sec@5326 e094ebfe-e918-0410-adfb-c712417f3574 --- scripts/filter-active.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/filter-active.py b/scripts/filter-active.py index 6d3f0551..0f088789 100755 --- a/scripts/filter-active.py +++ b/scripts/filter-active.py @@ -48,9 +48,9 @@ def ignore_issue_name(issue): return True return False -# Pad last part of CVE ID to 6 digits so string comparison keeps working +# Pad last part of CVE ID to 8 digits so string comparison keeps working def pad_cve_id(cve_id): - return re.sub(r'-(\d+)$', lambda m: '-%06d' % int(m.group(1)), cve_id) + return re.sub(r'-(\d+)$', lambda m: '-%08d' % int(m.group(1)), cve_id) def get_issues(dir): issues = [] @@ -146,13 +146,13 @@ if __name__ == '__main__': else: min_width = 20 max_width = 20 - sys.stdout.write(" ") + sys.stdout.write(" ") for release in options.release: sys.stdout.write(" %-20.20s " % release) sys.stdout.write("\n") for i in issues: - sys.stdout.write("%15s:" % i.name) + sys.stdout.write("%17s:" % i.name) for release in options.release: status = i.status(release) or "unknown" status_short = status.split(' ')[0] -- cgit v1.2.3