diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2017-05-31 18:42:37 +0000 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2017-05-31 18:42:37 +0000 |
commit | 4bd920a1c74f51d5142710cf41e95026af6cea20 (patch) | |
tree | c18a2ae33873339252cff36b60f3419cc476aa6a /scripts/filter-active.py | |
parent | 60d0c5b238e247747a631daaeb887ab3c12f1f07 (diff) |
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
Diffstat (limited to 'scripts/filter-active.py')
-rwxr-xr-x | scripts/filter-active.py | 8 |
1 files changed, 4 insertions, 4 deletions
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] |