[Git][security-tracker-team/security-tracker][master] check-new-issues: read the zip file after downloading it
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Thu Oct 5 13:02:24 BST 2023
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
1b1183bc by Emilio Pozuelo Monfort at 2023-10-05T14:00:52+02:00
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.
- - - - -
1 changed file:
- bin/check-new-issues
Changes:
=====================================
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()
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/1b1183bc8b2bd875588cfbc21de142cf9c7c6921
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/1b1183bc8b2bd875588cfbc21de142cf9c7c6921
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20231005/da338a72/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list