[Secure-testing-commits] r42844 - bin
Guido Guenther
agx at moszumanska.debian.org
Tue Jun 28 08:12:02 UTC 2016
Author: agx
Date: 2016-06-28 08:12:02 +0000 (Tue, 28 Jun 2016)
New Revision: 42844
Modified:
bin/support-ended.py
Log:
support-ended.py: Use information from debian-security-support by default
Modified: bin/support-ended.py
===================================================================
--- bin/support-ended.py 2016-06-28 07:53:01 UTC (rev 42843)
+++ bin/support-ended.py 2016-06-28 08:12:02 UTC (rev 42844)
@@ -81,16 +81,18 @@
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
More information about the Secure-testing-commits
mailing list