]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_shlibdeps
Fix typo in French translation, about debian/package.README.Debian files.
[debhelper.git] / dh_shlibdeps
index a076537a8790cf4d6ab5d5f6049a5dea1e23e9f9..e859f04aa3abc351b486156dc3b7b23e2675fd0a 100755 (executable)
@@ -117,7 +117,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
                $find_options="! \\( $dh{EXCLUDE_FIND} \\)";
        }
-       foreach my $file (split(/\n/,`find $tmp -path $tmp/usr/lib/debug -prune -or -type f \\( -perm +111 -or -name "*.so*" \\) $find_options -print`)) {
+       foreach my $file (split(/\n/,`find $tmp -type f \\( -perm +111 -or -name "*.so*" \\) $find_options -print`)) {
+               # Prune directories that contain separated debug symbols.
+               next if $file=~m!^\Q$tmp\E/usr/lib/debug/(lib|lib64|usr|bin|sbin|opt|dev|emul)/!;
                # TODO this is slow, optimize. Ie, file can run once on
                # multiple files..
                $ff=`file "$file"`;