Code

Updated class mapping patch
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 11:30:18 +0000 (11:30 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 11:30:18 +0000 (11:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20290 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/debian/patches/03_fix_class_mapping.patch

index 289a326c9475ee0be0d20d28ffec9f92f55a285a..680768d0b9a7343736274e9f6658e2b1052f3dc1 100644 (file)
@@ -31,4 +31,27 @@ Index: gosa/gosa-core/include/functions.inc
 +require_once("/var/cache/gosa/class.cache");
  require_once ("functions_debug.inc");
  require_once ("accept-to-gettext.inc");
+Index: gosa/gosa-core/update-gosa
+===================================================================
+--- gosa.orig/gosa-core/update-gosa 2008-06-10 07:56:22.000000000 +0000
++++ gosa/gosa-core/update-gosa  2010-10-01 06:51:28.481554589 +0000
+@@ -21,7 +21,7 @@
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+  */
+
+-define ("GOSA_HOME", dirname(__FILE__));
++define ("GOSA_HOME", "/usr/share/gosa");
+ define ("LOCALE_DIR", GOSA_HOME."/locale");
+ define ("PLUGSTATE_DIR", GOSA_HOME."/state");
+
+@@ -122,8 +122,8 @@
+ function rescan_classes()
+ {
+    echo "Updating class cache...\n";
+-   $class_mapping= get_classes();
+-   $filename= GOSA_HOME."/include/class_location.inc";
++   $class_mapping= get_classes("/usr/share/gosa");
++   $filename= "/var/cache/gosa/class.cache";
+
+    /* Sanity checks */
+    if (!file_exists($filename) || is_writable($filename)) {