diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-05-03 15:14:26 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-05-03 15:14:26 +0200 |
commit | d27be9390fb0a5faee4f6bbcd5463c3907734c4a (patch) | |
tree | 010cc95152f52d9f5829f9f9774989b36eb40c8e /solenv/bin | |
parent | 55fb624ac03cd353a34b593a2d8612eccbedff15 (diff) |
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.
Diffstat (limited to 'solenv/bin')
-rwxr-xr-x | solenv/bin/ooinstall | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall index 47c06cb6b62e..4afdb23d0133 100755 --- a/solenv/bin/ooinstall +++ b/solenv/bin/ooinstall @@ -30,7 +30,9 @@ for $arg (@ARGV) { } else { # Cwd::realpath does not work if the path does not exist 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||; } } |