The test that ensured that the newest version would always be taken,
(which e.g. in the case of testing-security isn't always the security
version), was partly broken.
Reported by Michael Banck.
$real_archive = $archive;
$archive = 'us';
}
$real_archive = $archive;
$archive = 'us';
}
- if (($real_archive eq $archive) &&
- $pkgs{$pkg}{$suite}{$archive} &&
+ if ($pkgs{$pkg}{$suite}{$archive} &&
(version_cmp( $pkgs{$pkg}{$suite}{$archive}, $version ) >= 0)) {
next;
}
(version_cmp( $pkgs{$pkg}{$suite}{$archive}, $version ) >= 0)) {
next;
}