diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-10-05 14:00:52 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-10-05 14:00:52 +0200 |
commit | 1b1183bc8b2bd875588cfbc21de142cf9c7c6921 (patch) | |
tree | d79990153314786fac46a218c37cb91993b985c0 /bin | |
parent | 89c62970940520236f93565761b63f77ddbf4873 (diff) |
check-new-issues: read the zip file after downloading it
This was working when the file had already been downloaded,
but was broken if the file was not present in some code reorganization.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/check-new-issues | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index 8c5ea53097..facaa5c760 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -352,10 +352,6 @@ ignore_bug_file = "data/packages/ignored-debian-bug-packages" wnppurl = "https://qa.debian.org/data/bts/wnpp_rm" wnppfile = "../wnpp_rm" -# used by read_cve5, used as a global so that we don't have to open the -# file repeatedly, since we only read cve5s one by one on demand -cve5_zip = zipfile.ZipFile(cve5_file) - issue_re = re.compile(r'CVE-20(?:0[3-9]|[1-9][0-9])|TEMP') auto_display_limit = 10 #$auto_display_limit = $opts{a} if defined $opts{a} @@ -374,6 +370,10 @@ if not args.no_download: debug("reading data...") +# used by read_cve5, used as a global so that we don't have to open the +# file repeatedly, since we only read cve5s one by one on demand +cve5_zip = zipfile.ZipFile(cve5_file) + # We have CVE 5.0 JSON information coming from MITRE, we use cve5 for those # We also have CVE information coming from our data/CVE/list, we use cve there cves = parse_cves() |