From 1b1183bc8b2bd875588cfbc21de142cf9c7c6921 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 5 Oct 2023 14:00:52 +0200 Subject: 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. --- bin/check-new-issues | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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() -- cgit v1.2.3