# HG changeset patch # User Alexandre Fayolle # Date 1265975876 -3600 # Node ID 43c14e0e897215a92dbbd700c026f83d4fa64519 # Parent 8968c50818db50be0f8089eb2943e9760e8acde8# Parent 23201259ffeb42a1f088d70e988a9043a1daa40a merge diff -r 23201259ffeb -r 43c14e0e8972 server/sources/ldapuser.py --- a/server/sources/ldapuser.py Fri Feb 12 12:13:07 2010 +0100 +++ b/server/sources/ldapuser.py Fri Feb 12 12:57:56 2010 +0100 @@ -78,7 +78,7 @@ ('auth-realm', {'type' : 'string', 'default': None, - 'help': 'realm to use when using gssapp/kerberos authentication.', + 'help': 'realm to use when using gssapi/kerberos authentication.', 'group': 'ldap-source', 'inputlevel': 1, }), diff -r 23201259ffeb -r 43c14e0e8972 toolsutils.py --- a/toolsutils.py Fri Feb 12 12:13:07 2010 +0100 +++ b/toolsutils.py Fri Feb 12 12:57:56 2010 +0100 @@ -10,6 +10,7 @@ # XXX move most of this in logilab.common (shellutils ?) import os, sys +import subprocess from os import listdir, makedirs, environ, chmod, walk, remove from os.path import exists, join, abspath, normpath @@ -75,8 +76,8 @@ user decision """ import shutil - p_output = os.popen('diff -u %s %s' % (appl_file, ref_file), 'r') - diffs = p_output.read() + pipe = subprocess.Popen(['diff', '-u', appl_file, ref_file], stdout=subprocess.PIPE) + diffs = pipe.stdout.read() if diffs: if askconfirm: print