diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2019-11-27 14:19:13 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-02-26 12:31:30 +0100 |
commit | c143d8a9d88acac0ae2c28fefa5b27ae57e42be6 (patch) | |
tree | 21fd1ba6b4169bc47e53ed831fc107091ebb567c /lib | |
parent | b83de2f392253246867c08546079a0e5f913cb0c (diff) |
security_db: don't hardcode codenames in calls to _calcTesting()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py index fd90ab8b21..c0ab95c869 100644 --- a/lib/python/security_db.py +++ b/lib/python/security_db.py @@ -43,6 +43,7 @@ import sys import types import zlib +import config import debian_support import dist_config @@ -1280,10 +1281,13 @@ class DB: "SELECT name FROM bugs WHERE NOT not_for_us"): self._calcUnstable(c, bug_name) - self._calcTesting(c, bug_name, 'testing', 'bullseye') - self._calcTesting(c, bug_name, 'stable', 'buster') - self._calcTesting(c, bug_name, 'oldstable', 'stretch') - self._calcTesting(c, bug_name, 'oldoldstable', 'jessie') + + for release in config.get_supported_releases(): + if release == 'sid': + continue + + alias = config.get_release_alias(release) + self._calcTesting(c, bug_name, alias, release) return result |