summaryrefslogtreecommitdiffstats
path: root/bin/unsupported_packages.py
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-05-30 12:16:14 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-05-30 12:16:14 +0200
commit20f0b653ee78c80c5faa849b2c3f0fcc50479fa4 (patch)
tree4d09c719e67de936a8737c2611bb3f35e390fa06 /bin/unsupported_packages.py
parent5d67456aad96a51b6588883627a8e11a813c1fa9 (diff)
lts-cve-triage: use correct debian-security-support branch
We were downloading files from master instead of the suite branch, so e.g. python2.7 was marked as limited support when it's still supported in buster.
Diffstat (limited to 'bin/unsupported_packages.py')
-rw-r--r--bin/unsupported_packages.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/unsupported_packages.py b/bin/unsupported_packages.py
index c6c6fdc82f..1b33bccce1 100644
--- a/bin/unsupported_packages.py
+++ b/bin/unsupported_packages.py
@@ -49,7 +49,7 @@ class DebSecSupport(set):
class UnsupportedPackages(DebSecSupport):
- URL = "https://salsa.debian.org/debian/debian-security-support/raw/master/security-support-ended.deb{}"
+ URL = "https://salsa.debian.org/debian/debian-security-support/raw/{}/security-support-ended.deb{}"
CACHED_DATA_PATH = "~/.cache/security-support-ended.deb{}"
def __init__(self, codename, update_cache=True):
@@ -57,7 +57,7 @@ class UnsupportedPackages(DebSecSupport):
dists = list(config.get_config().keys())
self.debian_version = dists.index(codename) + 1
- self.url = self.URL.format(self.debian_version)
+ self.url = self.URL.format(codename, self.debian_version)
self.cache = os.path.expanduser(self.CACHED_DATA_PATH).format(
self.debian_version,
@@ -67,10 +67,10 @@ class UnsupportedPackages(DebSecSupport):
class LimitedSupportPackages(DebSecSupport):
- URL = "https://salsa.debian.org/debian/debian-security-support/raw/master/security-support-limited"
+ URL = "https://salsa.debian.org/debian/debian-security-support/raw/{}/security-support-limited"
CACHED_DATA_PATH = "~/.cache/security-support-limited"
- def __init__(self, update_cache=True):
- self.url = self.URL
+ def __init__(self, codename, update_cache=True):
+ self.url = self.URL.format(codename)
self.cache = os.path.expanduser(self.CACHED_DATA_PATH)
super(LimitedSupportPackages, self).__init__(update_cache)

© 2014-2024 Faster IT GmbH | imprint | privacy policy