summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2019-11-27 14:40:51 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-02-26 12:31:30 +0100
commit0080683fb287101ceeca314427dc0a766cf43bf3 (patch)
treef742a40e19afbfa23726a9a448d549c480a8395a /lib
parent891dbf39b71fcbe0be2dd5c55268303c3f082cdf (diff)
security_db: don't hardcode release codenames in _initViews
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 8ba681ab82..44170c455e 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -495,7 +495,11 @@ class DB:
AND sp.release = 'bullseye' AND sp.subrelease = ''
ORDER BY sp.name, st.urgency, st.bug_name""")
- for (name, nickname) in (('stable', 'buster'), ('oldstable', 'stretch'), ('oldoldstable', 'jessie'),):
+ releases = (('stable', config.get_release_codename('stable')),
+ ('oldstable', config.get_release_codename('oldstable')),
+ ('oldoldstable', config.get_release_codename('oldoldstable')))
+
+ for (name, nickname) in releases:
cursor.execute(
"""CREATE TEMPORARY VIEW %s_status AS
SELECT DISTINCT sp.name AS package, st.bug_name AS bug,

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