From 4c7ee4c87e19bcf7428666cb00cc5304be85c300 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 22 Jan 2008 16:42:41 +0000 Subject: [PATCH] Updated gosa-update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8543 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/update-gosa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index d869bf899..3a3a20768 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -295,7 +295,7 @@ function install_plugin($file) $source= $path."/".substr($entry->getPathName(), strlen($path) + 1); /* Skip well known directories */ - if (preg_match('/^\./', $source) || preg_match('/\/\.svn\//', $source)) { + if (preg_match('/^\.+$/', $source) || preg_match('/\/\.svn\//', $source)) { continue; } @@ -303,7 +303,7 @@ function install_plugin($file) if (preg_match("%^.*locale/%", $source)){ $dest= GOSA_HOME."/locale/plugin/$name/".preg_replace("%^.*locale/%", "", $source); } else { - $dest= GOSA_HOME."/plugins/".$source; + $dest= GOSA_HOME."/plugins/".substr($entry->getPathName(), strlen($path) + 1); } /* Destination exists in case of directories? */ -- 2.30.2