summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-05-03 14:27:06 +0200
committerPetr Mladek <pmladek@suse.cz>2011-05-03 14:51:51 +0200
commitb9dd2241c60635ba15929ffad9962928460bd3ec (patch)
tree0ee4c993b7b322fd806dc5f691fe6c9429d231b5
parent1fd180e6e1796696775d8431e6c9e522ae1f2060 (diff)
ooinstall: respect DESTDIR
The problem was that ooinstall just passed -destdir to make_installer.pl, but before that, it tried to create the root directory, where it did not respect DESTDIR. Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rwxr-xr-xsolenv/bin/ooinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 83717fa68..47c06cb6b 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -29,7 +29,7 @@ for $arg (@ARGV) {
$help = 1;
} else {
# Cwd::realpath does not work if the path does not exist
- mkpath($arg) unless -d $arg;
+ mkpath($ENV{DESTDIR} . $arg) unless -d $ENV{DESTDIR} . $arg;
$path = Cwd::realpath( $arg );
}
}