$val = $override->{$p} if exists $override->{$p};
push @query_string, "$p=$val" if $val;
}
- push @path, $add_path if $add_path;
+ push @path, $add_path if $add_path and $add_path ne '/';
push @query_string, $add_query if $add_query;
my $path = join( '/', @path );
my $query_string = join( '&', @query_string );
+ $path .= '/' if $add_path and $add_path eq '/';
+ $path .= "?$query_string" if $query_string;
- return "$path?$query_string";
+ return $path;
}
sub make_search_url {
package Packages::DoShow;
use strict;
+use warnings;
use POSIX;
use URI::Escape;
$long_desc =~ s/\n /\n/sgo;
$long_desc =~ s/\n.\n/\n<p>\n/go;
$long_desc =~ s/(((\n|\A) [^\n]*)+)/\n<pre>$1\n<\/pre>/sgo;
-# $long_desc = conv_desc( $lang, $long_desc );
-# $short_desc = conv_desc( $lang, $short_desc );
my @menu = ( [ _g( "Distribution:" ),
_g( "Overview over this suite" ),
make_url("/",''),
$package_page .= "<td>".$versions->{$a}."</td>"
if $multiple_versions;
$package_page .= '<td class="size">';
- $package_page .= floor(($sizes_deb->{$a}/102.4)+0.5)/10 . " kB";
+ # package size
+ $package_page .= sprintf(_g('%.1f kB'),
+ floor(($sizes_deb->{$a}/102.4)+0.5)/10);
$package_page .= '</td><td class="size">';
- $package_page .= $sizes_inst->{$a} . " kB";
+ # installed size
+ $package_page .= sprintf(_g('%d kB'),
+ $sizes_inst->{$a});
$package_page .= "</td>\n<td>";
if ( $suite ne "experimental" ) {
$package_page .= sprintf( "[<a href=\"%s\">"._g( "list of files" )."</a>]\n",