summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/packagelist.pm
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-07-12 10:15:50 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-07-12 10:15:50 +0000
commitf0bcf374c98e1e8b87d26c77a68a015c6bce0b5a (patch)
treea968a532cd4c494aa1d65d8f9f20bff6f4d658d4 /solenv/bin/modules/installer/packagelist.pm
parent8e380a40c793fd76938d191b1950981ccce972c0 (diff)
INTEGRATION: CWS native97 (1.9.164); FILE MERGED
2007/07/10 10:47:10 is 1.9.164.1: #i79432# enable Unix links in scp2
Diffstat (limited to 'solenv/bin/modules/installer/packagelist.pm')
-rw-r--r--solenv/bin/modules/installer/packagelist.pm23
1 files changed, 20 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/packagelist.pm b/solenv/bin/modules/installer/packagelist.pm
index 3bf0ddeb71ab..e11c0e2936a6 100644
--- a/solenv/bin/modules/installer/packagelist.pm
+++ b/solenv/bin/modules/installer/packagelist.pm
@@ -4,9 +4,9 @@
#
# $RCSfile: packagelist.pm,v $
#
-# $Revision: 1.9 $
+# $Revision: 1.10 $
#
-# last change: $Author: obo $ $Date: 2007-01-25 15:23:52 $
+# last change: $Author: ihi $ $Date: 2007-07-12 11:15:50 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -382,7 +382,7 @@ sub find_links_for_package
sub find_dirs_for_package
{
- my ($dirlist, $filelist, $linklist, $packagename) = @_;
+ my ($dirlist, $filelist, $linklist, $unixlinklist, $packagename) = @_;
my @newdirlist = ();
@@ -431,6 +431,23 @@ sub find_dirs_for_package
}
}
+ # also searching for unix links
+
+ if ( ! $includedir ) # also looking for links
+ {
+ for ( my $j = 0; $j <= $#{$unixlinklist}; $j++ )
+ {
+ my $onelink = ${$unixlinklist}[$j];
+ my $destination = $onelink->{'destination'};
+
+ if ( $destination =~ /^\s*\Q$hostname\E/ ) # the directory path is part of the file path!
+ {
+ $includedir = 1;
+ last;
+ }
+ }
+ }
+
# also investigating the flag CREATE (only added to gid_Module_Root)
if (( ! $includedir ) && ( $packagename eq "gid_Module_Root" ))