From: lpsolit%gmail.com <> Date: Tue, 27 Oct 2009 20:58:30 +0000 (+0000) Subject: Bug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by FrÃ... X-Git-Tag: bugzilla-3.4.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ece6b10f982a116c27ddea550b5d07ef318e68e0;p=thirdparty%2Fbugzilla.git Bug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm b/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm index c8309d70e1..6cd59b50c0 100644 --- a/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm +++ b/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm @@ -106,4 +106,14 @@ sub note_for_contents_file { return $retval; } +# Exclude modules being in lib/. +sub find_all_pods { + my($self, $dirs) = @_; + my $mod2path = $self->SUPER::find_all_pods($dirs); + foreach my $mod (keys %$mod2path) { + delete $mod2path->{$mod} if $mod =~ /^lib::/; + } + return $mod2path; +} + 1;