Kaydet (Commit) 2066569e authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS nativefixer7 (1.30.6); FILE MERGED

2005/05/10 15:56:38 is 1.30.6.1: #i20372# linux patch updates only installed rpms
üst 17794bd0
...@@ -2217,26 +2217,26 @@ sub finalize_linux_patch ...@@ -2217,26 +2217,26 @@ sub finalize_linux_patch
my $infoline = "Found script file $scriptfilename: $$scriptref \n"; my $infoline = "Found script file $scriptfilename: $$scriptref \n";
push( @installer::globals::logfileinfo, $infoline); push( @installer::globals::logfileinfo, $infoline);
# Collecting all RPMs in the patch directory # # Collecting all RPMs in the patch directory
#
my $fileextension = "rpm"; # my $fileextension = "rpm";
my $rpmfiles = installer::systemactions::find_file_with_file_extension($fileextension, $newepmdir); # my $rpmfiles = installer::systemactions::find_file_with_file_extension($fileextension, $newepmdir);
if ( ! ( $#{$rpmfiles} > -1 )) { installer::exiter::exit_program("ERROR: Could not find rpm in directory $newepmdir!", "finalize_linux_patch"); } # if ( ! ( $#{$rpmfiles} > -1 )) { installer::exiter::exit_program("ERROR: Could not find rpm in directory $newepmdir!", "finalize_linux_patch"); }
for ( my $i = 0; $i <= $#{$rpmfiles}; $i++ ) { installer::pathanalyzer::make_absolute_filename_to_relative_filename(\${$rpmfiles}[$i]); } # for ( my $i = 0; $i <= $#{$rpmfiles}; $i++ ) { installer::pathanalyzer::make_absolute_filename_to_relative_filename(\${$rpmfiles}[$i]); }
#
my $installline = ""; # my $installline = "";
#
for ( my $i = 0; $i <= $#{$rpmfiles}; $i++ ) # for ( my $i = 0; $i <= $#{$rpmfiles}; $i++ )
{ # {
$installline = $installline . " rpm --prefix \$PRODUCTINSTALLLOCATION -U $newepmdir/${$rpmfiles}[$i]\n"; # $installline = $installline . " rpm --prefix \$PRODUCTINSTALLLOCATION -U $newepmdir/${$rpmfiles}[$i]\n";
} # }
#
$installline =~ s/\s*$//; # $installline =~ s/\s*$//;
#
for ( my $j = 0; $j <= $#{$scriptfile}; $j++ ) # for ( my $j = 0; $j <= $#{$scriptfile}; $j++ )
{ # {
${$scriptfile}[$j] =~ s/INSTALLLINES/$installline/; # ${$scriptfile}[$j] =~ s/INSTALLLINES/$installline/;
} # }
# Replacing the productname # Replacing the productname
......
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