our @ISA = qw( Exporter );
our @EXPORT = qw( header title trailer file_changed time_stamp
read_md5_hash write_md5_hash simple_menu
- ds_begin ds_item ds_end title marker pdesc
+ ds_begin ds_item ds_end title marker pdesc ptags
pdeplegend pkg_list pmoreinfo print_deps print_src_deps );
our $CHANGELOG_URL = '/changelogs';
return $str;
}
+sub ptags {
+ my ( $package, @tags ) = @_;
+ my $str = "";
+
+ $str .= "<div id=\"ptags\">\n<p>";
+ $str .= "<a href=\"http://debtags.alioth.debian.org/cgi-bin/edit.cgi?pkg=".uri_escape($package)."\">Tags</a>:\n";
+ foreach my $tag (@tags) {
+ $str .= "<a href=\"http://debtags.alioth.debian.org/cgi-bin/index.cgi?tags=".uri_escape($tag)."\">$tag</a>\n";
+ }
+ $str .= "</p>\n</div> <!-- end ptags -->\n";
+
+ return $str;
+}
+
sub pdeplegend {
my $str = "<table id=\"pdeplegend\" summary=\"legend\"><tr>\n";
my ( $suite, $name, $info, $desc ) = @_;
my ($link, $post_link) = ('', '');
if ($suite) {
- $link = "<a href=\"".make_url($name,'',{suite=>$suite})."\">";
+ $link = "<a href=\"".make_url($name,'',{suite=>$suite,source=>undef})."\">";
$post_link = '</a>';
}
if ($info) {
my $short_desc = $also ? _g("also a virtual package provided by ")
: _g("virtual package provided by ");
if (@provided_by < 10) {
- $short_desc .= join( ', ',map { "<a href=\"".make_url($_,'',{suite=>$suite})."\">$_</a>" } @provided_by);
+ $short_desc .= join( ', ',map { "<a href=\"".make_url($_,'',{suite=>$suite,source=>undef})."\">$_</a>" } @provided_by);
} else {
$short_desc .= sprintf( _g("%s packages"), scalar(@provided_by));
}
} elsif (defined $entry->[0]) {
$short_desc = provides_string( $p_suite,
$entry->[0] );
- push @res_pkgs, dep_item( $p_suite,
+ #FIXME: we don't handle virtual packages from
+ # the fallback suite correctly here
+ push @res_pkgs, dep_item( $suite,
$p_name, "$pkg_version$arch_str", $short_desc );
}
} elsif ( $is_old_pkgs ) {
"<div id=\"fineprint\" class=\"bordertop\"><p>".
sprintf( _g( "To report a problem with the web site, e-mail <a href=\"mailto:%s\">%s</a>. For other contact information, see the Debian <a href=\"%s/contact\">contact page</a>." ), $CONTACT_MAIL, $CONTACT_MAIL, $HOME).
"</p>\n".
- "<p>". _g( "Last Modified: " ). "LAST_MODIFIED_DATE".
+ "<p>". _g( "Last Modified: " ). gmtime().
"<br>\n".
sprintf( _g( "Copyright © 1997-2005 <a href=\"http://www.spi-inc.org\">SPI</a>; See <a href=\"%s/license\">license terms</a>." ), "$HOME/" )."<br>\n".
_g( "Debian is a registered trademark of Software in the Public Interest, Inc." ).