summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eefc5b6)
raw | patch | inline | side by side (parent: eefc5b6)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Jan 2008 16:42:41 +0000 (16:42 +0000) | ||
committer | cajus <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 | patch | blob | history |
diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa
index d869bf89904e54c18dbc1b536a047f00e9773f07..3a3a207680fd06851a4fbd2bcfd6afa4e6919983 100755 (executable)
--- a/gosa-core/update-gosa
+++ b/gosa-core/update-gosa
$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;
}
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? */