Kaydet (Commit) 708def7d authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Fix ooinstall -l case

Removing destdir prefix for dev-install case is not a good idea
üst ca718e36
...@@ -28,11 +28,13 @@ for $arg (@ARGV) { ...@@ -28,11 +28,13 @@ for $arg (@ARGV) {
} elsif ($arg eq '-h' || $arg eq '--help') { } elsif ($arg eq '-h' || $arg eq '--help') {
$help = 1; $help = 1;
} else { } else {
# Cwd::realpath does not work if the path does not exist # Cwd::realpath does not work if the path does not exist
mkpath($ENV{DESTDIR} . $arg) unless -d $ENV{DESTDIR} . $arg; mkpath($ENV{DESTDIR} . $arg) unless -d $ENV{DESTDIR} . $arg;
$path = Cwd::realpath( $ENV{DESTDIR} . $arg ); $path = Cwd::realpath( $ENV{DESTDIR} . $arg );
my $destdir = Cwd::realpath( $ENV{DESTDIR} ); if (!$do_link) {
$path =~ s|$destdir||; my $destdir = Cwd::realpath( $ENV{DESTDIR} );
$path =~ s|$destdir||;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment