$package_page .= simple_menu( [ gettext( "Distribution:" ),
gettext( "Overview over this suite" ),
- "/$suite/",
+ "$ROOT/$suite/",
$suite ],
[ gettext( "Section:" ),
gettext( "All packages in this section" ),
- "/$suite/$subsection/",
+ "$ROOT/$suite/$subsection/",
$subsection ],
);
$package_page .= "<th>".gettext("Architecture")."</th><th>".gettext("Files")."</th><th>".gettext( "Package Size")."</th><th>".gettext("Installed Size")."</th></tr>\n";
foreach my $a ( @archs ) {
$package_page .= "<tr>\n";
- $package_page .= "<th><a href=\"$DL_URL?arch=$a";
- $package_page .= "&file=".uri_escape($filenames->{$a});
- $package_page .= "&md5sum=$file_md5sums->{$a}";
- $package_page .= "&arch=$a";
- for ($archives->{$a}) {
- /security/o && do {
- $package_page .= "&type=security"; last };
- /volatile/o && do {
- $package_page .= "&type=volatile"; last };
- /backports/o && do {
- $package_page .= "&type=backports"; last };
- /non-us/io && do {
- $package_page .= "&type=nonus"; last };
- $package_page .= "&type=main";
- }
+ $package_page .= "<th><a href=\"$ROOT/$suite/$encodedpkg/$a/download";
$package_page .= "\">$a</a></th>\n";
$package_page .= "<td>";
if ( $suite ne "experimental" ) {
- $package_page .= sprintf( "[<a href=\"%s\">".gettext( "list of files" )."</a>]\n", "$FILELIST_URL$encodedpkg&version=$suite&arch=$a", $pkg );
+ $package_page .= sprintf( "[<a href=\"%s\">".gettext( "list of files" )."</a>]\n",
+ "$ROOT/$suite/$encodedpkg/$a/filelist", $pkg );
} else {
$package_page .= gettext( "no current information" );
}
- $package_page .= "</td>\n<td>";
- $package_page .= floor(($sizes_deb->{$a}/102.4)+0.5)/10;
- $package_page .= "</td>\n<td>";
- $package_page .= $sizes_inst->{$a};
+ $package_page .= "</td>\n<td align=right>"; #FIXME: css
+ $package_page .= floor(($sizes_deb->{$a}/102.4)+0.5)/10 . " kB";
+ $package_page .= "</td>\n<td align=right>"; #FIXME: css
+ $package_page .= $sizes_inst->{$a} . " kB";
$package_page .= "</td>\n</tr>";
}
- $package_page .= "</table><p>".gettext ( "Size is measured in kBytes." )."</p>\n";
+ $package_page .= "</table>\n";
$package_page .= "</div> <!-- end pdownload -->\n";
#
if ($info{search}) {
my $encodedname = uri_escape( $name );
- my $search_url = $is_source ? $SRC_SEARCH_URL : $SEARCH_URL;
- $str .= "<p>".sprintf( gettext( "Search for <a href=\"%s\">other versions of %s</a>" ), $search_url.$encodedname, $name )."</p>\n";
+ my $search_url = $is_source ? "$ROOT/source" : $ROOT;
+ $str .= "<p>".sprintf( gettext( "Search for <a href=\"%s\">other versions of %s</a>" ),
+ "$search_url/$encodedname", $name )."</p>\n";
}
$str .= "</div> <!-- end pmoreinfo -->\n";
(read_entry_simple( $packages, $p_name, $opts->{h_archives}, $opts->{suite}))->[-1];
if ( $short_desc ) {
if ( $is_old_pkgs ) {
- push @res_pkgs, dep_item( "/$opts->{suite}/$p_name",
+ push @res_pkgs, dep_item( "$ROOT/$opts->{suite}/$p_name",
$p_name, "$pkg_version$arch_str" );
} else {
$short_descs{$p_name} ||= $short_desc;
$short_desc = encode_entities( $short_desc, "<>&\"" );
- push @res_pkgs, dep_item( "/$opts->{suite}/$p_name",
+ push @res_pkgs, dep_item( "$ROOT/$opts->{suite}/$p_name",
$p_name, "$pkg_version$arch_str", $short_desc );
}
} elsif ( $is_old_pkgs ) {