summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/windows/idtglobal.pm
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-02-19 12:50:33 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-02-19 12:50:33 +0000
commit2c66b7e10eda912442ff3cb8875a9a5374d95149 (patch)
tree3ade0a984a986f13ae5c07aea598e02d30afdd0b /solenv/bin/modules/installer/windows/idtglobal.pm
parent5b9a97d0145d2d1eea39eeb6dfcb8dcd880465d2 (diff)
INTEGRATION: CWS native77 (1.31.144); FILE MERGED
2007/01/22 17:26:59 is 1.31.144.1: #i72363# no more error in ice checks on msi database
Diffstat (limited to 'solenv/bin/modules/installer/windows/idtglobal.pm')
-rw-r--r--solenv/bin/modules/installer/windows/idtglobal.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/windows/idtglobal.pm b/solenv/bin/modules/installer/windows/idtglobal.pm
index 825f871cab71..ab670a065276 100644
--- a/solenv/bin/modules/installer/windows/idtglobal.pm
+++ b/solenv/bin/modules/installer/windows/idtglobal.pm
@@ -4,9 +4,9 @@
#
# $RCSfile: idtglobal.pm,v $
#
-# $Revision: 1.31 $
+# $Revision: 1.32 $
#
-# last change: $Author: kz $ $Date: 2006-10-10 11:19:58 $
+# last change: $Author: rt $ $Date: 2007-02-19 13:50:33 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -258,11 +258,16 @@ sub make_eight_three_conform_with_hash
my $changed = 0;
my $saved;
- if (( $inputstring =~ /^\s*(.*?)\.(.*?)\s*$/ ) && ( $pattern eq "file" )) # files with a dot
+ # if (( $inputstring =~ /^\s*(.*?)\.(.*?)\s*$/ ) && ( $pattern eq "file" )) # files with a dot
+ if (( $inputstring =~ /^\s*(.*)\.(.*?)\s*$/ ) && ( $pattern eq "file" )) # files with a dot
{
+ # extension has to be non-greedy, but name is. This is important to find the last dot in the filename
$name = $1;
my $extension = $2;
+ if ( $name =~ /^\s*(.*?)\s*$/ ) { $name = $1; } # now the name is also non-greedy
+ $name =~ s/\.//g; # no dots in 8+3 conform filename
+
$namelength = length($name);
my $extensionlength = length($extension);