summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Dpkg/Vendor/Debian.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index a352bbdde..65c7f2bad 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -466,7 +466,7 @@ sub _build_tainted_by {
File::Find::find({
wanted => sub { $tainted{"usr-local-has-$type"} = 1 if -f },
no_chdir => 1,
- }, map { "/usr/local/$_" } @{$usr_local_types{$type}});
+ }, grep { -d } map { "/usr/local/$_" } @{$usr_local_types{$type}});
}
my @tainted = sort keys %tainted;