]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_perl
dh_perl: Do not look at perl scripts under /usr/share/doc. Closes: #546683
[debhelper.git] / dh_perl
diff --git a/dh_perl b/dh_perl
index 56d9f21a972d3c73d7912ee53bd396ee6da128bc..eaa08fa8e8a4ab21e06cee785590b1cfc892c7ba 100755 (executable)
--- a/dh_perl
+++ b/dh_perl
@@ -106,6 +106,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        # find scripts
        find sub {
                return unless -f and (-x or /\.pl$/);
+               return if $File::Find::dir=~/\/usr\/share\/doc\//;
+               
                local *F;
                return unless open F, $_;
                if (read F, local $_, 32 and m%^#!\s*(/usr/bin/perl|/usr/bin/env\s+perl)\s%) {