This is an automated email from the git hooks/post-receive script. x2go pushed a commit to annotated tag 0.1.4.0 in repository x2goclient. commit d63d6c97a98b6ed6bf551074cd5452fb101a0592 Author: mike <mike@cdb5e8f1-f799-4276-8919-bce57fd91830> Date: Sun Nov 21 13:36:17 2010 +0000 * move _touch_file further up in the code git-svn-id: https://svn.das-netzwerkteam.de/x2go/pyhoca-cli/trunk@83 cdb5e8f1-f799-4276-8919-bce57fd91830 --- pyhoca/cli/frontend.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py index e5c38326..7da0299b 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -38,6 +38,12 @@ from x2go.defaults import X2GO_PRINT_ACTIONS # use current_home as user home dir current_home = os.path.expanduser("~") +def _touch_file(filename): + + if not os.path.isfile(filename): + f = open(filename, 'w') + f.close() + # define and create known_hosts file (if not there) ssh_known_hosts_filename = os.path.join(current_home, '.ssh', 'known_hosts') if not os.path.isfile(ssh_known_hosts_filename): @@ -47,12 +53,6 @@ ssh_config_filename = os.path.join(current_home, '.ssh', 'config') if not os.path.isfile(ssh_config_filename): _touch_file(ssh_config_filename) -def _touch_file(filename): - - if not os.path.isfile(filename): - f = open(filename, 'w') - f.close() - # sometimes we have to fail... def runtime_error(m, parser=None, exitcode=-1): """\ -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git