summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTomas Chvatal <tchvatal@suse.cz>2012-04-23 14:39:39 +0200
committerTomas Chvatal <tchvatal@suse.cz>2012-04-23 14:39:59 +0200
commit071d6daf5c798e89887a84a17fb3b64824fdbc6f (patch)
tree2d91c037cbec6ff240499072a9ea004e1da9d9e9 /solenv
parent17c8f6745f9f98013c1b08de8ec03be66546c7fc (diff)
Fix undefined destdir if the directory was not existing prior the run.
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/parameter.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/parameter.pm b/solenv/bin/modules/installer/parameter.pm
index 6d99aaa1a953..198a381fefad 100644
--- a/solenv/bin/modules/installer/parameter.pm
+++ b/solenv/bin/modules/installer/parameter.pm
@@ -152,7 +152,10 @@ sub getparameter
elsif ($param eq "-destdir") # new parameter for simple installer
{
$installer::globals::rootpath ne "" && die "must set destdir before -i or -simple";
- $installer::globals::destdir = Cwd::realpath( shift @ARGV );
+
+ my $path = shift(@ARGV);
+ mkdir $path;
+ $installer::globals::destdir = Cwd::realpath($path);
}
elsif ($param eq "-simple") # new parameter for simple installer
{