From 7206cc1ddf92f2a9551567a1ba7b76eb206dacee Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 12 Apr 2007 17:36:08 +0200 Subject: [PATCH] DoShow: Add Pre-Depends to dependency output --- lib/Packages/DoShow.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.39.2