]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/DoShow.pm
Use the debtags vocabulary to be able to show prettier tag names
[deb/packages.git] / lib / Packages / DoShow.pm
index 87320e8b65fface9a5f31d7eb0993c5af7c7d54b..21bd9852d22019c3494eb69d17eba7ba9cece11d 100644 (file)
@@ -119,7 +119,7 @@ sub do_show {
                        debug( "Data search and merging took ".timestr($std) ) if DEBUG;
 
                        my $did = $page->get_newest( 'description' );
-                       my @tags = split(/, /, $page->get_newest( 'tag' ));
+                       my @tags = map { [ $_, $debtags{$_} ] } split(/, /, $page->get_newest( 'tag' ));
                        $contents{tags} = \@tags;
 
                        $section = $page->get_newest( 'section' );
@@ -204,10 +204,6 @@ sub do_show {
                        $contents{desc}{short} = _g( "virtual package" );
                        $contents{subsection} = 'virtual';
 
-                       my $policy_url = 'http://www.debian.org/doc/debian-policy/';
-                       note( sprintf( _g( 'This is a <em>virtual package</em>. See the <a href="%s">Debian policy</a> for a <a href="%sch-binary.html#s-virtual_pkg">definition of virtual packages</a>.' ),
-                                      $policy_url, $policy_url ));
-
                        my $provided_by = $page->{provided_by};
                        $contents{providers} = [];
                        pkg_list( \%packages, $opts, $provided_by, 'en', $contents{providers} );