/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-01 19:57:43 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051201195743-57aefc694d237938
Reintroduced ensure_config_dir_exists() for sftp

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                           TransportNotPossible, NoSuchFile, NonRelativePath,
34
34
                           TransportError,
35
35
                           LockError)
36
 
from bzrlib.config import config_dir
 
36
from bzrlib.config import config_dir, ensure_config_dir_exists
37
37
from bzrlib.trace import mutter, warning, error
38
38
from bzrlib.transport import Transport, register_transport
39
39
from bzrlib.osutils import pathjoin
168
168
    """
169
169
    global SYSTEM_HOSTKEYS, BZR_HOSTKEYS
170
170
    bzr_hostkey_path = pathjoin(config_dir(), 'ssh_host_keys')
171
 
    if not os.path.isdir(config_dir()):
172
 
        os.mkdir(config_dir())
 
171
    ensure_config_dir_exists()
 
172
 
173
173
    try:
174
174
        f = open(bzr_hostkey_path, 'w')
175
175
        f.write('# SSH host keys collected by bzr\n')