diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-06 13:56:20 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-06 13:56:20 +0000 |
commit | ffd4dd8068ab36a4316c8418943b8d4857b1b6e3 (patch) | |
tree | 6c5f374f019f44bf7703cb8a0304288ea5ed2793 /solenv/bin/modules/installer/copyproject.pm | |
parent | 09f4b7c8d69c0ae90b06122bc1a0973ea7f6e970 (diff) |
INTEGRATION: CWS nativesmoker (1.3.18); FILE MERGED
2004/06/30 16:10:51 is 1.3.18.3: #i30826# updater pack to ship directory
Issue number:
Submitted by:
Reviewed by:
2004/06/30 12:54:58 is 1.3.18.2: #i30826# updater do pack in ship directory
Issue number:
Submitted by:
Reviewed by:
2004/06/30 09:08:46 is 1.3.18.1: #i30826# only one installation set in instset_native output tree
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'solenv/bin/modules/installer/copyproject.pm')
-rw-r--r-- | solenv/bin/modules/installer/copyproject.pm | 45 |
1 files changed, 10 insertions, 35 deletions
diff --git a/solenv/bin/modules/installer/copyproject.pm b/solenv/bin/modules/installer/copyproject.pm index 74c9e0f641e6..c21105039b1a 100644 --- a/solenv/bin/modules/installer/copyproject.pm +++ b/solenv/bin/modules/installer/copyproject.pm @@ -2,9 +2,9 @@ # # $RCSfile: copyproject.pm,v $ # -# $Revision: 1.3 $ +# $Revision: 1.4 $ # -# last change: $Author: kz $ $Date: 2004-06-11 18:15:15 $ +# last change: $Author: rt $ $Date: 2004-07-06 14:56:20 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -83,10 +83,11 @@ sub copy_project installer::logger::include_header_into_logfile("Creating installation directory"); - my $installdir = installer::systemactions::create_directories("install", $languagestringref); - my $numberedinprogressdir = installer::systemactions::make_numbered_dir("inprogress", $installdir); - my $current_install_number = installer::converter::get_number_from_directory($numberedinprogressdir); - my $installlogdir = installer::systemactions::create_directory_next_to_directory($numberedinprogressdir, "log"); + my $current_install_number = ""; + + my $installdir = installer::worker::create_installation_directory($shipinstalldir, $languagestringref, \$current_install_number); + + my $installlogdir = installer::systemactions::create_directory_next_to_directory($installdir, "log"); # Copy files and ScpActions @@ -99,7 +100,7 @@ sub copy_project my $onefile = ${$filesref}[$i]; my $source = $onefile->{'sourcepath'}; - my $destination = $numberedinprogressdir . $installer::globals::separator . $onefile->{'Name'}; + my $destination = $installdir . $installer::globals::separator . $onefile->{'Name'}; installer::systemactions::copy_one_file($source, $destination); } @@ -111,40 +112,14 @@ sub copy_project my $onefile = ${$scpactionsref}[$i]; my $source = $onefile->{'sourcepath'}; - my $destination = $numberedinprogressdir . $installer::globals::separator . $onefile->{'Name'}; + my $destination = $installdir . $installer::globals::separator . $onefile->{'Name'}; installer::systemactions::copy_one_file($source, $destination); } # Analyzing the log file - print "... checking log file " . $loggingdir . $installer::globals::logfilename . "\n"; - - my $contains_error = installer::control::check_logfile(\@installer::globals::logfileinfo); - - if ( $contains_error ) - { - my $errordir = installer::systemactions::rename_string_in_directory($numberedinprogressdir, "inprogress", "with_error"); - if ( $installer::globals::updatepack ) { installer::mail::send_fail_mail($allsettingsarrayref, $languagestringref, $errordir); } - } - else - { - my $destdir = installer::systemactions::rename_string_in_directory($numberedinprogressdir, "inprogress", ""); - - if ( $installer::globals::updatepack ) - { - my $completeshipinstalldir = installer::worker::copy_install_sets_to_ship($destdir, $shipinstalldir); - installer::mail::send_success_mail($allsettingsarrayref, $languagestringref, $completeshipinstalldir); - } - } - - my $numberedlogfilename = $installer::globals::logfilename . "_" . $current_install_number; - - # Saving the logfile in the log file directory and additionally in a log directory in the install directory - - print "... creating log file $numberedlogfilename \n"; - installer::files::save_file($loggingdir . $numberedlogfilename, \@installer::globals::logfileinfo); - installer::files::save_file($installlogdir . $installer::globals::separator . $numberedlogfilename, \@installer::globals::logfileinfo); + installer::worker::analyze_and_save_logfile($loggingdir, $installdir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number); # That's all |