Kaydet (Commit) d27be939 authored tarafından Petr Mladek's avatar Petr Mladek

ooinstall: use DESTDIR also for the Cwd::realpath call

this solution is not perfect because Cwd::realpath($ENV{DESTDIR})
need not be part of Cwd::realpath($ENV{DESTDIR} . $arg). Let's
solve this when it really cause troubles.
üst 55fb624a
...@@ -30,7 +30,9 @@ for $arg (@ARGV) { ...@@ -30,7 +30,9 @@ for $arg (@ARGV) {
} 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( $arg ); $path = Cwd::realpath( $ENV{DESTDIR} . $arg );
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