[Secure-testing-commits] r58724 - bin

Raphael Geissert geissert at moszumanska.debian.org
Wed Dec 20 13:44:40 UTC 2017


Author: geissert
Date: 2017-12-20 13:44:40 +0000 (Wed, 20 Dec 2017)
New Revision: 58724

Modified:
   bin/check-new-issues
Log:
Sort CVE issues numerically


Modified: bin/check-new-issues
===================================================================
--- bin/check-new-issues	2017-12-20 13:44:02 UTC (rev 58723)
+++ bin/check-new-issues	2017-12-20 13:44:40 UTC (rev 58724)
@@ -199,7 +199,7 @@
 
 if ($opts{l}) {
 	#list only
-	foreach my $todo (reverse sort @todos) {
+	foreach my $todo (sort {$b <=> $a} @todos) {
 		my $desc=description($todo);
 		if ($desc) {
 			my $lines=$opts{n} || 2;
@@ -271,7 +271,7 @@
 
 $attribs->{attempted_completion_function} = \&initial_completion;
 
-foreach my $todo (reverse sort @todos) {
+foreach my $todo (sort {$b <=> $a} @todos) {
 	last unless present_issue($todo);
 }
 




More information about the Secure-testing-commits mailing list