diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-30 15:37:34 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-30 15:37:34 +0000 |
commit | e02fa240525528659f8e741745a96eb7f82095d6 (patch) | |
tree | b1a5617ee25063acff94802c943433f364b64ed6 /solenv/bin/modules/installer/ziplist.pm | |
parent | da13a91cda7b7467d8b3d5cf1f6cce392765cfce (diff) |
#i10000# Fixws for windows OOo
Diffstat (limited to 'solenv/bin/modules/installer/ziplist.pm')
-rw-r--r-- | solenv/bin/modules/installer/ziplist.pm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/ziplist.pm b/solenv/bin/modules/installer/ziplist.pm index b2ccca872364..5da975efb232 100644 --- a/solenv/bin/modules/installer/ziplist.pm +++ b/solenv/bin/modules/installer/ziplist.pm @@ -2,9 +2,9 @@ # # $RCSfile: ziplist.pm,v $ # -# $Revision: 1.5 $ +# $Revision: 1.6 $ # -# last change: $Author: is $ $Date: 2004-07-29 11:09:48 $ +# last change: $Author: rt $ $Date: 2004-07-30 16:37:25 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -514,6 +514,9 @@ sub replace_all_variables_in_pathes foreach $key (keys %{$variableshashref}) { my $value = $variableshashref->{$key}; + + if (( $line =~ /\{$key\}/ ) && ( $value eq "" )) { $line = ".\n"; } + $line =~ s/\{\Q$key\E\}/$value/g; } @@ -563,6 +566,9 @@ sub remove_ending_separator installer::remover::remove_ending_pathseparator(\$line); + $line =~ s/\s*$//; + $line = $line . "\n"; + ${$patharrayref}[$i] = $line; } } @@ -701,7 +707,7 @@ sub simplify_path my $change = 0; - while ( $oldpath =~ /(^.*)(\Q$installer::globals::separator\E.*?)(\Q$installer::globals::separator\E\.\.)(\Q$installer::globals::separator\E.*$)/ ) + while ( $oldpath =~ /(^.*)(\Q$installer::globals::separator\E.*\w+?)(\Q$installer::globals::separator\E\.\.)(\Q$installer::globals::separator\E.*$)/ ) { my $part1 = $1; my $part2 = $4; |