diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2019-11-27 14:40:51 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-02-26 12:31:30 +0100 |
commit | 327d1fd90823452db992a334fdf47eec890c0ceb (patch) | |
tree | ac152a4f0af67f791dbdfa3caf4cfca15bbe4e31 /lib | |
parent | f0ffe0da1a980a4cfb53fb4d7af41b7d15b34788 (diff) |
security_db: don't hardcode release codenames in _initViews
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 6 |
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, |