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 | ae326f788998e35c61c9a67cd1a3025f986606b9 (patch) | |
tree | 7d615c95f9798416bc15f83694a7986127d46953 /lib | |
parent | 2598c5f1e8113716727beaf5cc836fe5a446474a (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 |