aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2018-10-07 19:53:27 +1300
committerGitHub <noreply@github.com>2018-10-07 19:53:27 +1300
commit79c74047b5831824006f7efbacdaaad7057fee0d (patch)
treeaa51cec0d5b4e8b9f7c606bf02f9213a5208ddfd
parentb79e72b246adb98215ec2950c70cc9ca232780cb (diff)
downloadadvisory-feeds-79c74047b5831824006f7efbacdaaad7057fee0d.tar.gz
advisory-feeds-79c74047b5831824006f7efbacdaaad7057fee0d.tar.bz2
advisory-feeds-79c74047b5831824006f7efbacdaaad7057fee0d.zip
Ensures the CVE state is reset between advisories
-rw-r--r--advisories/management/commands/updateadvisories.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/advisories/management/commands/updateadvisories.py b/advisories/management/commands/updateadvisories.py
index 4216037..7111737 100644
--- a/advisories/management/commands/updateadvisories.py
+++ b/advisories/management/commands/updateadvisories.py
@@ -118,6 +118,7 @@ class DebianFeed(object):
}
issued = pytz.utc.localize(dateutil_parse(line.split('] ')[0].strip('[')))
advisory = line.split('] ')[-1].split()[0] # upstream ID of DSA/DLA
+ cves = []
'''
there are at least two advisories, DLA-359-1 and DLA-73-1, which don't
follow the "[<date>] <DLA #> <source package> - <description>" format,