diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2019-12-02 12:41:35 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-02-26 12:31:30 +0100 |
commit | b9e80cfc8e6b31c255ed5a2f34cab29c0f61e097 (patch) | |
tree | cca964bebbd75f1b7eb11d1bb958837d8095f60b /lib | |
parent | 4812a4377c9b00a1331bc372faf4dd82cfb6acc1 (diff) |
security_db: don't hardcode release names
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py index bc5f8a07da..a4281274a7 100644 --- a/lib/python/security_db.py +++ b/lib/python/security_db.py @@ -588,7 +588,7 @@ class DB: return -1 self.db.createscalarfunction("subreleasepart_to_number", subreleasepart_to_number, 1) - releases = ['potato', 'woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy', 'jessie', 'stretch', 'buster', 'bullseye', 'sid'] + releases = config.get_all_releases() def release_to_number(u): try: return releases.index(u) |