summaryrefslogtreecommitdiffstats
path: root/bin/check-new-issues
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2017-12-20 13:44:40 +0000
committerRaphael Geissert <geissert@debian.org>2017-12-20 13:44:40 +0000
commit6556c39900204e5e1fea8d32ac0843fa7d06dee3 (patch)
tree5aaedefb15c96137a3b6e6d71a1a99a0d5e52a32 /bin/check-new-issues
parent4a9c5d29c406a683d5d2cbd72248b76d8377d51c (diff)
Sort CVE issues numerically
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@58724 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-new-issues')
-rwxr-xr-xbin/check-new-issues4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues
index 664397c8a9..16a177741f 100755
--- a/bin/check-new-issues
+++ b/bin/check-new-issues
@@ -199,7 +199,7 @@ print "\n";
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 @@ sub initial_completion {
$attribs->{attempted_completion_function} = \&initial_completion;
-foreach my $todo (reverse sort @todos) {
+foreach my $todo (sort {$b <=> $a} @todos) {
last unless present_issue($todo);
}

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