Kaydet (Commit) 8b389383 authored tarafından Tim Retout's avatar Tim Retout Kaydeden (comit) Michael Meeks

Remove unused checksum subs from installer::worker

üst 2efa9f51
...@@ -815,10 +815,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ ) ...@@ -815,10 +815,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
installer::scriptitems::make_filename_language_specific($filesinproductlanguageresolvedarrayref); installer::scriptitems::make_filename_language_specific($filesinproductlanguageresolvedarrayref);
if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "productfiles10f.log", $filesinproductlanguageresolvedarrayref); } if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "productfiles10f.log", $filesinproductlanguageresolvedarrayref); }
# print "... calculating checksums ...\n";
# my $checksumfile = installer::worker::make_checksum_file($filesinproductlanguageresolvedarrayref, $includepatharrayref);
# if ( $installer::globals::globallogging ) { installer::files::save_file($loggingdir . $installer::globals::checksumfilename, $checksumfile); }
###################################################################################### ######################################################################################
# Unzipping files with flag ARCHIVE and putting all included files into the file list # Unzipping files with flag ARCHIVE and putting all included files into the file list
###################################################################################### ######################################################################################
......
...@@ -83,57 +83,6 @@ sub unpack_all_targzfiles_in_directory ...@@ -83,57 +83,6 @@ sub unpack_all_targzfiles_in_directory
} }
} }
#########################################
# Create checksum file
#########################################
sub make_checksum_file
{
my ( $filesref, $includepatharrayref ) = @_;
my @checksum = ();
my $checksumfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$installer::globals::checksumfile, $includepatharrayref, 1);
if ( $$checksumfileref eq "" ) { installer::exiter::exit_program("ERROR: Could not find file $installer::globals::checksumfile !", "make_checksum_file"); }
my $systemcall = "$$checksumfileref";
for ( my $i = 0; $i <= $#{$filesref}; $i++ )
{
my $onefile = ${$filesref}[$i];
$systemcall = $systemcall . " " . $onefile->{'sourcepath'}; # very very long systemcall
if ((( $i > 0 ) && ( $i%100 == 0 )) || ( $i == $#{$filesref} )) # limiting to 100 files
{
$systemcall = $systemcall . " \|";
my @localchecksum = ();
open (CHECK, "$systemcall");
@localchecksum = <CHECK>;
close (CHECK);
for ( my $j = 0; $j <= $#localchecksum; $j++ ) { push(@checksum, $localchecksum[$j]); }
$systemcall = "$$checksumfileref"; # reset the system call
}
}
return \@checksum;
}
#########################################
# Saving the checksum file
#########################################
sub save_checksum_file
{
my ($current_install_number, $installchecksumdir, $checksumfile) = @_;
my $numberedchecksumfilename = $installer::globals::checksumfilename;
$numberedchecksumfilename =~ s/\./_$current_install_number\./; # checksum.txt -> checksum_01.txt
installer::files::save_file($installchecksumdir . $installer::globals::separator . $numberedchecksumfilename, $checksumfile);
}
################################################# #################################################
# Writing some global information into # Writing some global information into
# the list of files without flag PATCH # the list of files without flag PATCH
...@@ -351,9 +300,6 @@ sub analyze_and_save_logfile ...@@ -351,9 +300,6 @@ sub analyze_and_save_logfile
installer::files::save_file($loggingdir . $numberedlogfilename, \@installer::globals::logfileinfo); installer::files::save_file($loggingdir . $numberedlogfilename, \@installer::globals::logfileinfo);
installer::files::save_file($installlogdir . $installer::globals::separator . $numberedlogfilename, \@installer::globals::logfileinfo); installer::files::save_file($installlogdir . $installer::globals::separator . $numberedlogfilename, \@installer::globals::logfileinfo);
# Saving the checksumfile in a checksum directory in the install directory
# installer::worker::save_checksum_file($current_install_number, $installchecksumdir, $checksumfile);
# Saving the list of patchfiles in a patchlist directory in the install directory # Saving the list of patchfiles in a patchlist directory in the install directory
if (( $installer::globals::patch ) || ( $installer::globals::creating_windows_installer_patch )) { installer::worker::save_patchlist_file($installlogdir, $numberedlogfilename); } if (( $installer::globals::patch ) || ( $installer::globals::creating_windows_installer_patch )) { installer::worker::save_patchlist_file($installlogdir, $numberedlogfilename); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment