Code

Updated gosa-update
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Jan 2008 16:42:41 +0000 (16:42 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Jan 2008 16:42:41 +0000 (16:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8543 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index d869bf89904e54c18dbc1b536a047f00e9773f07..3a3a207680fd06851a4fbd2bcfd6afa4e6919983 100755 (executable)
@@ -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? */