summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/Install.pm
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2003-05-22 19:10:46 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-23 13:06:25 +0000
commit2530b651d288d7db98df4c0991f07a783a1cd32c (patch)
tree46e6b3c07f57558c3f532f12d621104bc7c9d4c8 /lib/ExtUtils/Install.pm
parenta0d8a30e4d6cdcb83a19818856ccc52190cdd95f (diff)
downloadperl-2530b651d288d7db98df4c0991f07a783a1cd32c.tar.gz
ExtUtils::MakeMaker 6.10_03 -> 6.10_04
Message-ID: <20030523091046.GB11662@windhund.schwern.org> p4raw-id: //depot/perl@19594
Diffstat (limited to 'lib/ExtUtils/Install.pm')
-rw-r--r--lib/ExtUtils/Install.pm19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/ExtUtils/Install.pm b/lib/ExtUtils/Install.pm
index 68fe343ba2..103797353f 100644
--- a/lib/ExtUtils/Install.pm
+++ b/lib/ExtUtils/Install.pm
@@ -108,20 +108,11 @@ sub install {
for (readdir DIR) {
next if $_ eq $Curdir || $_ eq $Updir || $_ eq ".exists";
my $targetdir = install_rooted_dir($from_to{$source_dir_or_file});
- if ($nonono) {
- if (!-w $targetdir) {
- print "mkpath($targetdir)\n" if $verbose>1;
- }
- last;
- } else {
- if (-w $targetdir ||
- mkpath($targetdir)) {
- last;
- } else {
- warn "Warning: You do not have permissions to " .
- "install into $from_to{$source_dir_or_file}"
- unless $warn_permissions++;
- }
+ mkpath($targetdir) unless $nonono;
+ if (!$nonono && !-w $targetdir) {
+ warn "Warning: You do not have permissions to " .
+ "install into $from_to{$source_dir_or_file}"
+ unless $warn_permissions++;
}
}
closedir DIR;