diff options
author | Paul Klos <kolab@klos2day.nl> | 2012-10-24 07:15:13 -0400 |
---|---|---|
committer | Paul Klos <kolab@klos2day.nl> | 2012-10-24 07:15:13 -0400 |
commit | 48c557875ac8d5a6b182a2c458580c041cc13509 (patch) | |
tree | 41e8c6f1cd06e4aa1e7ad15a6a50905360f1e0c1 /pykolab | |
parent | 98f26ff425ebd635b7262996e09d0e8d689974b6 (diff) | |
download | pykolab-48c557875ac8d5a6b182a2c458580c041cc13509.tar.gz |
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.
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/setup/setup_ldap.py | 9 |
1 files changed, 0 insertions, 9 deletions
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( |