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 | d75d1c94897671e1d0581df7cac9f662d071bf6d (patch) | |
tree | b5f26c0b74c556867d0f08968321c0750dcfeb84 /lib | |
parent | 651299e86218da37f577fa2aa980a7a1b75b9f9f (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 |