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 6a252cc5d911d1341dbf1c09d370454a0300b09f Author: mike <mike@cdb5e8f1-f799-4276-8919-bce57fd91830> Date: Sun Nov 21 13:43:28 2010 +0000 * creating .ssh directory if not present git-svn-id: https://svn.das-netzwerkteam.de/x2go/pyhoca-cli/trunk@84 cdb5e8f1-f799-4276-8919-bce57fd91830 --- pyhoca/cli/frontend.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py index 7da0299b..e69432d5 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -40,9 +40,10 @@ current_home = os.path.expanduser("~") def _touch_file(filename): - if not os.path.isfile(filename): - f = open(filename, 'w') - f.close() + if not os.path.isdir(os.path.dirname(filename)): + os.makedirs(os.path.dirname(filename), mode='0755') + 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') -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits