From 1044e718fe6e3d9032b678d5aae3e5e427121d5b Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Mon, 20 Aug 2007 12:22:56 +0000 Subject: [PATCH] INTEGRATION: CWS ab40_SRC680 (1.51.24); FILE MERGED 2007/08/16 10:38:12 is 1.51.24.1: #i80650# shortcuts into update rpm --- solenv/bin/modules/installer/worker.pm | 85 +++++++++++++++++++------- 1 file changed, 62 insertions(+), 23 deletions(-) diff --git a/solenv/bin/modules/installer/worker.pm b/solenv/bin/modules/installer/worker.pm index 253826d4edae..c1f1cfa562d7 100644 --- a/solenv/bin/modules/installer/worker.pm +++ b/solenv/bin/modules/installer/worker.pm @@ -4,9 +4,9 @@ # # $RCSfile: worker.pm,v $ # -# $Revision: 1.51 $ +# $Revision: 1.52 $ # -# last change: $Author: hr $ $Date: 2007-07-31 13:59:14 $ +# last change: $Author: ihi $ $Date: 2007-08-20 13:22:56 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -1373,33 +1373,72 @@ sub prepare_forced_linuxlinkfiles if ( $isforcedlink ) { - my $fileid = $onelink->{'FileID'}; - my $searchedlinkfile = find_file_by_id(\@installer::globals::allfilessav, $fileid); + my $fileid = ""; - # making a copy! + if ( $onelink->{'ShortcutID'} ) + { + $fileid = $onelink->{'ShortcutID'}; - my %linkfilehash = (); - my $linkfile = \%linkfilehash; - installer::converter::copy_item_object($searchedlinkfile, $linkfile); + my $searchedlinkfile = find_file_by_id($linksref, $fileid); - $linkfile->{'Name'} = $onelink->{'Name'}; - $linkfile->{'destinationfile'} = $linkfile->{'destination'}; - my $linkdestination = $linkfile->{'destinationfile'}; - installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$linkdestination); - $linkfile->{'destinationfile'} = $linkdestination; + # making a copy! + my %linkfilehash = (); + my $linkfile = \%linkfilehash; + installer::converter::copy_item_object($searchedlinkfile, $linkfile); - my $localdestination = $linkfile->{'destination'}; - # Getting the path - installer::pathanalyzer::get_path_from_fullqualifiedname(\$localdestination); - $localdestination =~ s/\Q$installer::globals::separator\E\s*$//; - $linkfile->{'destination'} = $localdestination . $installer::globals::separator . $onelink->{'Name'}; + $linkfile->{'Name'} = $onelink->{'Name'}; + $linkfile->{'destinationfile'} = $linkfile->{'destination'}; + my $linkdestination = $linkfile->{'destinationfile'}; + installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$linkdestination); + $linkfile->{'destinationfile'} = $linkdestination; - $infoline = "Forced link into update file: $linkfile->{'destination'} pointing to $linkfile->{'destinationfile'} !\n"; - push( @installer::globals::logfileinfo, $infoline); + my $localdestination = $linkfile->{'destination'}; + # Getting the path + installer::pathanalyzer::get_path_from_fullqualifiedname(\$localdestination); + $localdestination =~ s/\Q$installer::globals::separator\E\s*$//; + $linkfile->{'destination'} = $localdestination . $installer::globals::separator . $onelink->{'Name'}; + + $infoline = "Forced link into update file: $linkfile->{'destination'} pointing to $linkfile->{'destinationfile'} !\n"; + push( @installer::globals::logfileinfo, $infoline); + + # The file, defined by the link, has to be included into the + # link array @installer::globals::linuxlinks + push( @installer::globals::linuxlinks, $linkfile ); + } + + if ( $onelink->{'FileID'} ) + { + $fileid = $onelink->{'FileID'}; + + my $searchedlinkfile = find_file_by_id(\@installer::globals::allfilessav, $fileid); + + # making a copy! + my %linkfilehash = (); + my $linkfile = \%linkfilehash; + installer::converter::copy_item_object($searchedlinkfile, $linkfile); + + $linkfile->{'Name'} = $onelink->{'Name'}; + $linkfile->{'destinationfile'} = $linkfile->{'destination'}; + my $linkdestination = $linkfile->{'destinationfile'}; + installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$linkdestination); + $linkfile->{'destinationfile'} = $linkdestination; + + my $localdestination = $linkfile->{'destination'}; + # Getting the path + installer::pathanalyzer::get_path_from_fullqualifiedname(\$localdestination); + $localdestination =~ s/\Q$installer::globals::separator\E\s*$//; + $linkfile->{'destination'} = $localdestination . $installer::globals::separator . $onelink->{'Name'}; + + $infoline = "Forced link into update file: $linkfile->{'destination'} pointing to $linkfile->{'destinationfile'} !\n"; + push( @installer::globals::logfileinfo, $infoline); + + # The file, defined by the link, has to be included into the + # link array @installer::globals::linuxlinks + push( @installer::globals::linuxlinks, $linkfile ); + } + + if ( $fileid eq "" ) { installer::exiter::exit_program("ERROR: No FileID assigned to forced link $onelink->{'gid'} !", "prepare_forced_linuxlinkfiles"); } - # The file, defined by the link, has to be included into the - # link array @installer::globals::linuxlinks - push( @installer::globals::linuxlinks, $linkfile ); } else {