]> git.deb.at Git - deb/packages.git/commitdiff
DoShow: Add Pre-Depends to dependency output
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 12 Apr 2007 15:36:08 +0000 (17:36 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 12 Apr 2007 15:36:08 +0000 (17:36 +0200)
lib/Packages/DoShow.pm

index 0f760858f76b291e78594ab7d5130af524a4bb9b..e3dc1115eee9b8c2a83f51eedb39477886f6e9d3 100644 (file)
@@ -140,7 +140,7 @@ sub do_show {
                        $short_desc = encode_entities( $1, "<>&\"" )
                            if $desc =~ s/^(.*)$//m;
                        my $long_desc = encode_entities( $desc, "<>&\"" );
-                       
+
                        $long_desc =~ s,((ftp|http|https)://[\S~-]+?/?)((\&gt\;)?[)]?[']?[:.\,]?(\s|$)),<a href=\"$1\">$1</a>$3,go; # syntax highlighting -> '];
                        $long_desc =~ s/\A //o;
                        $long_desc =~ s/\n /\n/sgo;
@@ -163,6 +163,9 @@ sub do_show {
                        #
                        # display dependencies
                        #
+                       build_deps( \%packages, $opts, $pkg,
+                                   $page->get_dep_field('pre-depends'),
+                                   'depends', \%contents );
                        build_deps( \%packages, $opts, $pkg,
                                    $page->get_dep_field('depends'),
                                    'depends', \%contents );