From: Frank Lichtenheld Date: Thu, 12 Apr 2007 15:36:08 +0000 (+0200) Subject: DoShow: Add Pre-Depends to dependency output X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=7206cc1ddf92f2a9551567a1ba7b76eb206dacee;p=deb%2Fpackages.git DoShow: Add Pre-Depends to dependency output --- diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index 0f76085..e3dc111 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -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~-]+?/?)((\>\;)?[)]?[']?[:.\,]?(\s|$)),$1$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 );