summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2012-11-14 11:28:17 +0100
committerPetr Mladek <pmladek@suse.cz>2012-11-14 12:00:23 +0100
commitbae7ec75a1ce284a713c446ed2b4b05299a96f13 (patch)
tree6fec75a1d70c27f6b9d4c5738e35320fcafdfe7f /solenv
parent52ecc7125d546a85cdf91f209015a0a102242a7c (diff)
do not remove logging directory under hands
the installer is called several times for langpacks and helppacks in parallel; it has removed the whole toplevel logging directory and the logging failed better solution would be to remove only the lang-specific subdirectories; well, the installer removed only emptry directories in the past, see 2584a460b5e560fce8719879414311b16b2c63d9 Change-Id: I9dc9591346c7447677f46bca15085a3877e067ce
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer.pm b/solenv/bin/modules/installer.pm
index 4c50d3b9e426..76455f1c84ee 100644
--- a/solenv/bin/modules/installer.pm
+++ b/solenv/bin/modules/installer.pm
@@ -182,7 +182,9 @@ sub run {
########################################################
my $oldloggingdir = $loggingdir;
- installer::systemactions::remove_complete_directory($oldloggingdir);
+ # FIXME: It would be better to use installer::systemactions::remove_complete_directory
+ # Though, we would need to remove only the lang-specific subdirectory for langpacks and helppacks
+ rmdir $oldloggingdir;
$loggingdir = installer::systemactions::create_directories("logging", "");
$loggingdir = $loggingdir . $installer::globals::separator;
$installer::globals::exitlog = $loggingdir;