summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2021-05-22 11:05:03 +0200
committerSalvatore Bonaccorso <carnil@debian.org>2021-05-22 12:48:47 +0200
commitb8e655f8bfa5b0632fee0f4822330ddb50f9ca53 (patch)
treedc64642634d14e320832f8bdec8d8c4c3b3eb464 /lib
parente3afc37683784966394df66466f2eae009273fe7 (diff)
security_db: Create next_point_table as well on fresh DB initialization
8846bec76339 ("Fix CVE10k problem for CVE with more than 4 numbers") introduced the initialization of schema 22 and introducing the machinery to allow the tracker.d.o support reading next point release information. On updates from already initialized databases with previous schemas this worked fine, but as Neil Williams reported, this fails when starting with a new instance. Link: https://lists.debian.org/debian-security-tracker/2021/05/msg00024.html Fixes: 8846bec76339 ("Fix CVE10k problem for CVE with more than 4 numbers") Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 674adeb342..caf8ae67bc 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -444,6 +444,8 @@ class DB:
self._initNoDSA(cursor)
+ self._initNextPointRelease(cursor)
+
cursor.execute("PRAGMA user_version = %d" % self.schema_version)
def _initSchema20(self):

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