From 32ddcb69164d01d94fd81126b690385aa62042c6 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Fri, 24 Sep 2010 15:22:59 +0200 Subject: installer-get-path-correctly.diff: allow to get path also from ./file Otherwise, it installed the license files into ugly subdirectories for example into /LICENSE.html/LICENSE.html even worse, the direcotry had the rights 444 --- solenv/bin/modules/installer/pathanalyzer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solenv/bin') 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; } -- cgit