summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2019-11-27 14:23:12 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-02-26 12:31:30 +0100
commit27c7e2201930b078e38a76ce59fd9630aae630c1 (patch)
treed5f33e9722d2d9651d5e73dd35af604d8898d936 /lib
parent14dba5fc6197069c73cae624165dfd3ffa8d0523 (diff)
security_db: take the sid value in calculateDebsecan0
When the release is sid, just pass 'sid' rather than the empty string to change that afterwards.
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 7beef42a82..a66ab1fbab 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1456,12 +1456,10 @@ class DB:
c.execute("""INSERT INTO vulnlist
SELECT bug_name, package, id FROM package_notes WHERE release = ''""")
- if release:
+ if release != 'sid':
c.execute("""INSERT OR REPLACE INTO vulnlist
SELECT bug_name, package, id FROM package_notes
WHERE release = ?""", (release,))
- else:
- release = 'sid'
urgency_to_flag = {'low' : 'L', 'medium' : 'M', 'high' : 'H',
'not yet assigned' : ' '}
@@ -1749,7 +1747,7 @@ class DB:
def calculateDebsecan(self):
"""Calculate all debsecan data."""
- for release in ('', 'jessie', 'stretch', 'buster', 'bullseye'):
+ for release in ('sid', 'jessie', 'stretch', 'buster', 'bullseye'):
self.calculateDebsecan0(release)
self.calculateDebsecan1()

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