summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-10-05 14:00:52 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-10-05 14:00:52 +0200
commit1b1183bc8b2bd875588cfbc21de142cf9c7c6921 (patch)
treed79990153314786fac46a218c37cb91993b985c0
parent89c62970940520236f93565761b63f77ddbf4873 (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.
-rwxr-xr-xbin/check-new-issues8
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()

© 2014-2024 Faster IT GmbH | imprint | privacy policy