1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 03_fix_class_mapping.dpatch by <cajus@localhost>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
7 @DPATCH@
8 diff -urNad gosa-core~/include/functions.inc gosa-core/include/functions.inc
9 --- gosa-core~/include/functions.inc 2008-04-09 08:45:38.000000000 +0200
10 +++ gosa-core/include/functions.inc 2008-04-09 09:13:09.000000000 +0200
11 @@ -55,7 +55,7 @@
12 $svn_revision = '$Revision: 9246 $';
14 /* Include required files */
15 -require_once("class_location.inc");
16 +require_once("/var/cache/gosa/class.cache");
17 require_once ("functions_debug.inc");
18 require_once ("accept-to-gettext.inc");
20 diff -urNad gosa-core~/update-gosa gosa-core/update-gosa
21 --- gosa-core~/update-gosa 2008-04-02 15:58:24.000000000 +0200
22 +++ gosa-core/update-gosa 2008-04-09 09:12:56.000000000 +0200
23 @@ -21,7 +21,7 @@
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 */
27 -define ("GOSA_HOME", dirname(__FILE__));
28 +define ("GOSA_HOME", "/usr/share/gosa");
29 define ("LOCALE_DIR", GOSA_HOME."/locale");
30 define ("PLUGSTATE_DIR", GOSA_HOME."/state");
32 @@ -122,8 +122,8 @@
33 function rescan_classes()
34 {
35 echo "Updating class cache...\n";
36 - $class_mapping= get_classes();
37 - $filename= GOSA_HOME."/include/class_location.inc";
38 + $class_mapping= get_classes("/usr/share/gosa");
39 + $filename= "/var/cache/gosa/class.cache";
41 /* Sanity checks */
42 if (!file_exists($filename) || is_writable($filename)) {