From d42652d94a1252f9bb4307107c0fc04fc5e320c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 28 Jun 2016 08:12:02 +0000 Subject: 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 --- bin/support-ended.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/support-ended.py') 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 -- cgit v1.2.3