installman: don't warn about missing pod
authorDavid Mitchell <davem@iabyn.com>
Tue, 1 Mar 2016 16:04:36 +0000 (16:04 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 1 Mar 2016 16:04:36 +0000 (16:04 +0000)
Currently it spits out about 80 lines like the following to stderr:

    no documentation in lib/Archive/Tar/Constant.pm
    no documentation in lib/CPAN/Author.pm
    no documentation in lib/CPAN/Bundle.pm

Since this is not actually an error condition, spit to stdout instead,
and only under --verbose.

See http://nntp.perl.org/group/perl.perl5.porters/234436.

installman

index ce4b7f3..60fbce3 100755 (executable)
@@ -142,7 +142,7 @@ sub pod2man {
 
        unless ($has_pod)
        {
-           warn "no documentation in $mod\n" unless $opts{silent};
+           print "no documentation in $mod\n" if $opts{verbose};
            next;
        }