From: cajus Date: Tue, 22 Jan 2008 16:42:41 +0000 (+0000) Subject: Updated gosa-update X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c7ee4c87e19bcf7428666cb00cc5304be85c300;p=gosa.git Updated gosa-update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8543 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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? */