summaryrefslogtreecommitdiffstats
path: root/bin/support-ended.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-06-28 08:12:02 +0000
committerGuido Günther <agx@sigxcpu.org>2016-06-28 08:12:02 +0000
commitd42652d94a1252f9bb4307107c0fc04fc5e320c5 (patch)
treea54a7f3c34eba9ed85b856c490f55a17ff9f0f82 /bin/support-ended.py
parent895e0ac13d657adc213ae65f1dbe7fb896038b3b (diff)
support-ended.py: Use information from debian-security-support by default
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@42844 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/support-ended.py')
-rwxr-xr-xbin/support-ended.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/support-ended.py b/bin/support-ended.py
index bc77687571..99b284c615 100755
--- a/bin/support-ended.py
+++ b/bin/support-ended.py
@@ -81,16 +81,18 @@ def find_releases(pkg, dir, days):
def main():
parser = argparse.ArgumentParser(
description='Check if and when security support ended for a given package')
- parser.add_argument('--lists', help='Directory that contains the lists of unsupported packages ', default='.')
+ parser.add_argument('--lists', help='Directory that contains the lists of unsupported packages ',
+ default='/usr/share/debian-security-support/')
parser.add_argument('--days', help='days of security support left, 0 == LTS Release end', type=int, default=0)
parser.add_argument('package', nargs=1, help='package to check')
args = parser.parse_args()
- rels = find_releases(args.package[0], args.lists, args.days)
+ pkg = args.package[0]
+ rels = find_releases(pkg, args.lists, args.days)
if rels:
for rel in rels:
- print("Package unsupported in %s" % rel)
+ print("%s unsupported in %s" % (pkg, rel))
else:
return SUPPORT_FULL
return SUPPORT_ENDED

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