[pkg-kolab] r277 - trunk/kolab-webadmin/debian/patches

Steffen Joeris white-guest at costa.debian.org
Thu Feb 2 09:41:46 UTC 2006


Author: white-guest
Date: 2006-02-02 09:41:45 +0000 (Thu, 02 Feb 2006)
New Revision: 277

Added:
   trunk/kolab-webadmin/debian/patches/20-service_index.dpatch
Modified:
   trunk/kolab-webadmin/debian/patches/00list
Log:
* apply patch to delete freebusy values


Modified: trunk/kolab-webadmin/debian/patches/00list
===================================================================
--- trunk/kolab-webadmin/debian/patches/00list	2006-02-01 23:01:38 UTC (rev 276)
+++ trunk/kolab-webadmin/debian/patches/00list	2006-02-02 09:41:45 UTC (rev 277)
@@ -1 +1,2 @@
 10-fix-require
+20-service_index

Added: trunk/kolab-webadmin/debian/patches/20-service_index.dpatch
===================================================================
--- trunk/kolab-webadmin/debian/patches/20-service_index.dpatch	2006-02-01 23:01:38 UTC (rev 276)
+++ trunk/kolab-webadmin/debian/patches/20-service_index.dpatch	2006-02-02 09:41:45 UTC (rev 277)
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+## 10-service_index.dpatch by Tobias König <tokoe at kde.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: opportunity to delete freebusy value
+
+if [ $# -lt 1 ]; then
+echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+case "$1" in
+      -patch) patch $patch_opts -p1 < $0;;
+      -unpatch) patch $patch_opts -p1 -R < $0;;
+      *)
+      echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+      exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+--- index.php.orig	2006-02-02 09:08:17.000000000 +0100
++++ kolab-webadmin-0.4.0/www/admin/service/index.php	2006-02-02 08:56:14.000000000 +0100
+@@ -151,7 +151,9 @@ if( $_REQUEST['submithttpallowunauthfb']
+ 
+ if( $_REQUEST['submitfreebusypast'] ) {
+   $attrs = array();
+-  $attrs['kolabFreeBusyPast'] = trim( $_REQUEST['freebusypast'] );
++  $value = trim( $_REQUEST['freebusypast'] );
++  if( $value == '' ) $value = array();
++  $attrs['kolabFreeBusyPast'] = $value;
+   if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
+ 	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+ 	  .ldap_error($ldap->connection);


Property changes on: trunk/kolab-webadmin/debian/patches/20-service_index.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the pkg-kolab-devel mailing list