[Secure-testing-commits] r55296 - bin

Raphaël Hertzog hertzog at moszumanska.debian.org
Thu Aug 31 09:17:42 UTC 2017


Author: hertzog
Date: 2017-08-31 09:17:42 +0000 (Thu, 31 Aug 2017)
New Revision: 55296

Modified:
   bin/lts-cve-triage.py
Log:
Print source package URL as well and try to align URLs

Modified: bin/lts-cve-triage.py
===================================================================
--- bin/lts-cve-triage.py	2017-08-31 09:15:20 UTC (rev 55295)
+++ bin/lts-cve-triage.py	2017-08-31 09:17:42 UTC (rev 55296)
@@ -31,6 +31,8 @@
 except ImportError:
     pass
 
+TRACKER_URL = 'https://security-tracker.debian.org/tracker/'
+
 LIST_NAMES = (
     ('triage_end_of_life',
      'Issues to mark as <end-of-life> for {lts}'.format(**RELEASES)),
@@ -147,12 +149,12 @@
         continue
     print('\n{}:'.format(colored(desc, attrs=('bold',))))
     for pkg in sorted(lists[key].keys()):
-        print('\n* {:20s}'.format(
+        print('\n* {:<35s}  {}'.format(
             colored(pkg, 'red', attrs=('bold', 'underline')),
+            colored('{}source-package/{}'.format(TRACKER_URL, pkg), 'blue'),
         ))
         for x in sorted(lists[key][pkg], key=lambda x: x.name):
-            url = 'https://security-tracker.debian.org/tracker/{}'. \
-                format(x.name)
-            print('  - {}  {}'.format(x.name, colored(url, 'blue')))
+            url = '{}{}'.format(TRACKER_URL, x.name)
+            print('  - {:<16s}  {}'.format(x.name, colored(url, 'blue')))
 
     print('')




More information about the Secure-testing-commits mailing list