pykolab/setup

Paul Klos klos at kolabsys.com
Thu Oct 25 18:10:17 CEST 2012


 pykolab/setup/setup_ldap.py |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit 48c557875ac8d5a6b182a2c458580c041cc13509
Author: Paul Klos <kolab at klos2day.nl>
Date:   Wed Oct 24 07:15:13 2012 -0400

    Revert "Debianize: Enable dealing with compressed 'kolab2.ldif.gz';"
    
    This reverts commit e9ef1e603f007600868953d912c509dc35be4bba.
    
    No longer necessary, as the Debian package no longer compresses the schema files.

diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index f128456..b3136dc 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -17,7 +17,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #
 
-import gzip
 import ldap
 import ldap.modlist
 import os
@@ -291,14 +290,6 @@ ServerAdminPwd = %(admin_pass)s
         for filename in filenames:
             if filename == 'kolab2.ldif':
                 schema_file = os.path.join(root,filename)
-            if filename == 'kolab2.ldif.gz':
-		f = gzip.open(os.path.join(root,filename), 'rb')
-		file_content = f.read()
-		f.close()
-		(nf, tmp_schema_file) = tempfile.mkstemp(dir="/tmp/")
-		nf.writelines(file_content)
-		nf.close()
-		schema_file = tmp_schema_file
 
     if not schema_file == None:
         shutil.copy(





More information about the commits mailing list