summaryrefslogtreecommitdiff
path: root/dh_fixperms
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-23 21:30:43 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-23 21:30:43 +0400
commitcb7c6eec8d4d54f4f94b469f677cb8eb52a0f997 (patch)
tree0829848db37da16c08f61a1a851322911e36ce3d /dh_fixperms
parent81afa8ca2e1552fb22efdccde4b8fedf2083ae38 (diff)
parentceeb93c357c5625d2472143edad089bdbe0d4adb (diff)
downloaddebhelper-cb7c6eec8d4d54f4f94b469f677cb8eb52a0f997.tar.gz
Merge git://anonscm.debian.org/debhelper/debhelper
Conflicts: debian/changelog
Diffstat (limited to 'dh_fixperms')
-rwxr-xr-xdh_fixperms6
1 files changed, 5 insertions, 1 deletions
diff --git a/dh_fixperms b/dh_fixperms
index 73eacb50..809f2c31 100755
--- a/dh_fixperms
+++ b/dh_fixperms
@@ -7,6 +7,7 @@ dh_fixperms - fix permissions of files in package build directories
=cut
use strict;
+use Config;
use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
@@ -44,6 +45,9 @@ up a list of things to exclude.
init();
+my $vendorlib = substr $Config{vendorlib}, 1;
+my $vendorarch = substr $Config{vendorarch}, 1;
+
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
@@ -89,7 +93,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
"2>/dev/null | xargs -0r chmod 644");
# .. and perl modules.
- complex_doit("find $tmp/usr/lib/perl5 $tmp/usr/share/perl5 -type f",
+ complex_doit("find $tmp/$vendorarch $tmp/$vendorlib -type f",
"-perm -5 -name '*.pm' $find_options -print0",
"2>/dev/null | xargs -0r chmod a-X");