From: Frank Lichtenheld Date: Fri, 24 Feb 2006 13:17:52 +0000 (+0000) Subject: Sort packages listed by pkg_list X-Git-Tag: switch-to-templates~35 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=9f051cb98c766053ff549284f4d8dddde476037a;p=deb%2Fpackages.git Sort packages listed by pkg_list --- diff --git a/lib/Packages/HTML.pm b/lib/Packages/HTML.pm index 6200534..eb38c72 100644 --- a/lib/Packages/HTML.pm +++ b/lib/Packages/HTML.pm @@ -82,8 +82,10 @@ sub pkg_list { my $suite = $opts->{suite}[0]; my $str = ""; - foreach my $p ( @$pkgs ) { + foreach my $p ( sort @$pkgs ) { + # we don't deal with virtual packages here because for the + # current uses of this function this isn't needed my $short_desc = (read_entry_simple( $packages, $p, $opts->{h_archives}, $suite))->[-1]; if ( $short_desc ) {