summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-05-03 15:14:26 +0200
committerPetr Mladek <pmladek@suse.cz>2011-05-03 15:14:26 +0200
commitd27be9390fb0a5faee4f6bbcd5463c3907734c4a (patch)
tree010cc95152f52d9f5829f9f9774989b36eb40c8e /solenv/bin
parent55fb624ac03cd353a34b593a2d8612eccbedff15 (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-xsolenv/bin/ooinstall4
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||;
}
}