move File::Find control back into its code blocks

Ok, this is longer, but features less scary action at a distance.
master
Joey Hess 2010-04-17 16:14:15 -04:00
parent f78e6798aa
commit 831b891abd
1 changed files with 6 additions and 1 deletions

View File

@ -291,7 +291,6 @@ sub verify_src_file ($$) {
my $page = pagename($file);
if (! exists $pagesources{$page} &&
file_pruned($file)) {
$File::Find::prune=1;
return;
}
@ -318,6 +317,9 @@ sub find_src_files () {
}
$pages{$page}=1;
}
else {
$File::Find::prune=1;
}
},
}, $config{srcdir});
foreach my $dir (@{$config{underlaydirs}}, $config{underlaydir}) {
@ -336,6 +338,9 @@ sub find_src_files () {
}
}
}
else {
$File::Find::prune=1;
}
},
}, $dir);
};