Skip to content

Commit

Permalink
podcheck.t: Re-enable --add_link
Browse files Browse the repository at this point in the history
Commit 83ced75 broke the --add_link option to podcheck.t.  Now fixed
  • Loading branch information
Karl Williamson committed Jun 25, 2013
1 parent e93a7ae commit 8c791ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions t/porting/podcheck.t
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,13 @@ if (($regen + $show_all + $show_counts + $add_link + $cpan_or_deltas ) > 1) {

my $has_input_files = @files;

if ($has_input_files) {

if ($add_link) {
if (! $has_input_files) {
croak "--add_link requires at least one module or man page reference";
}
}
elsif ($has_input_files) {
if ($regen || $show_counts || $do_upstream_cpan || $do_deltas) {
croak "--regen, --counts, --deltas, and --cpan can't be used since using specific files";
}
Expand All @@ -575,10 +581,6 @@ if ($has_input_files) {
}
}

if ($add_link && ! $has_input_files) {
croak "--add_link requires at least one module or man page reference";
}

our %problems; # potential problems found in this run

package My::Pod::Checker { # Extend Pod::Checker
Expand Down

0 comments on commit 8c791ef

Please sign in to comment.