$html .= pkg_htmlindexentrystatus(\%status) . "\n";
push @status, [ $bug, \%status, $html ];
}
- print STDERR "nbnug_order: $bug_order\n";
if ($bug_order eq 'age') {
# MWHAHAHAHA
@status = sort {$a->[1]{log_modified} <=> $b->[1]{log_modified}} @status;
addfoundversions($data, $data->{package}, $version, 'binary');
my @fixed_order = sort {Debbugs::Versions::Dpkg::vercmp($a,$b);}
@{$data->{fixed_versions}};
- if (not @fixed_order or (vercmp($fixed_order[-1],$version) >= 0)) {
+ if (not @fixed_order or (Debbugs::Versions::Dpkg::vercmp($version,$fixed_order[-1]) >= 0)) {
$data->{done} = '';
}
} else {
# -*- mode: cperl;-*-
# $Id: 05_mail.t,v 1.1 2005/08/17 21:46:17 don Exp $
-use Test::More tests => 52;
+use Test::More tests => 64;
use warnings;
use strict;
status_key => 'fixed_versions',
status_value => [],
},
+ 'found_1.0~5+1b2' => {command => 'found',
+ value => '1.0~5+1b2',
+ status_key => 'found_versions',
+ status_value => ['1.0~5+1b2'],
+ },
+ 'fixed_1.2' => {command => 'fixed',
+ value => '1.2',
+ status_key => 'fixed_versions',
+ status_value => ['1.2'],
+ },
+ close => {command => 'close',
+ value => '',
+ status_key => 'done',
+ status_value => 'foo@bugs.something',
+ },
+ 'found_1.3' => {command => 'found',
+ value => '1.3',
+ status_key => 'done',
+ status_value => '',
+ },
submitter_foo => {command => 'submitter',
value => 'foo@bar.com',
status_key => 'originator',