summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2010-09-24 15:22:59 +0200
committerPetr Mladek <pmladek@suse.cz>2010-09-24 15:22:59 +0200
commit32ddcb69164d01d94fd81126b690385aa62042c6 (patch)
tree6929272b641c997d461ac370f6804973ddfd533a
parentbe104f270dc46de0c64ee897ae961a5308f51e59 (diff)
installer-get-path-correctly.diff: allow to get path also from ./file
Otherwise, it installed the license files into ugly subdirectories for example into <ooo-home>/LICENSE.html/LICENSE.html even worse, the direcotry had the rights 444
Notes
split repo tag: bootstrap_OOO_BUILD_3_2_99_0_PRE
-rw-r--r--solenv/bin/modules/installer/pathanalyzer.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/pathanalyzer.pm b/solenv/bin/modules/installer/pathanalyzer.pm
index 1c57a0d76e02..62085dac5e14 100644
--- a/solenv/bin/modules/installer/pathanalyzer.pm
+++ b/solenv/bin/modules/installer/pathanalyzer.pm
@@ -39,7 +39,7 @@ sub get_path_from_fullqualifiedname
if ( $$longfilenameref =~ /\Q$installer::globals::separator\E/ ) # Is there a separator in the path? Otherwise the path is empty.
{
- if ( $$longfilenameref =~ /^\s*(\S.*\S\Q$installer::globals::separator\E)(\S.+\S?)/ )
+ if ( $$longfilenameref =~ /^\s*(.*\Q$installer::globals::separator\E)(.+)/ )
{
$$longfilenameref = $1;
}