]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by FrÃ...
authorlpsolit%gmail.com <>
Tue, 27 Oct 2009 20:58:30 +0000 (20:58 +0000)
committerlpsolit%gmail.com <>
Tue, 27 Oct 2009 20:58:30 +0000 (20:58 +0000)
docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm

index c8309d70e1ea2075fb8f62e1f0c8529b436b7626..6cd59b50c0ef59f393191fa4a193b61b5b28e856 100644 (file)
@@ -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;