X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=lib%2FDeb%2FVersions.pm;h=ba9df21b193eeb2b7cb983e235828209db9bb026;hb=af06e819e0543521b4220ef7ea0562f7b8427f79;hp=d8d8282a3fcd39d3324dc5536632ac203d310668;hpb=d833a5eed5296d1a24c35e8f0802f8291037198d;p=deb%2Fpackages.git diff --git a/lib/Deb/Versions.pm b/lib/Deb/Versions.pm index d8d8282..ba9df21 100644 --- a/lib/Deb/Versions.pm +++ b/lib/Deb/Versions.pm @@ -155,7 +155,7 @@ sub _lcmp { our @SUITES_SORT = qw( woody oldstable sarge stable stable-proposed-updates etch etch-m68k testing testing-proposed-updates lenny sid unstable experimental - warty hoary breezy breezy dapper edgy feisty gutsy ); + warty hoary breezy dapper edgy feisty gutsy hardy intrepid jaunty); our @ARCHIVE_SORT = qw( non-US security updates volatile backports ); our @PRIORITY_SORT = qw( required important standard optional extra ); my $i = 1000; @@ -176,11 +176,11 @@ sub suites_cmp { $cmp_b = $suites_sort{$1} - $archive_sort{$2} if $s_b =~ m;^(.+?)[/-](.*)$;o; } - return ($cmp_a <=> $cmp_b); + return ($cmp_b <=> $cmp_a); } sub suites_sort { - return sort { suites_cmp( $b, $a ) } @_; + return sort { suites_cmp( $a, $b ) } @_; } sub priority_cmp {