]> git.deb.at Git - deb/packages.git/commitdiff
Packages::DoSearch: Fix handling of security source versions
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 16 Jun 2008 18:40:28 +0000 (20:40 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 16 Jun 2008 18:40:28 +0000 (20:40 +0200)
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.

lib/Packages/DoSearch.pm

index 4d86d51cf165021596e66151938d2f766cd98862..efefa975ad6ca5848c82ca94aeaacfb45201650b 100644 (file)
@@ -131,8 +131,7 @@ sub do_search {
                    $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;
                }