From bf6c5dd8702a43bfcc46e77dee425e536b1ec828 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 7 Oct 2011 23:39:46 +0000 Subject: fixed log file name for rsync svn path=/trunk/; revision=15542 --- scripts/check-for-type-punning-warnings.py | 5 +++-- scripts/load_every_help.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/check-for-type-punning-warnings.py b/scripts/check-for-type-punning-warnings.py index 93f564d2..cf4f7136 100755 --- a/scripts/check-for-type-punning-warnings.py +++ b/scripts/check-for-type-punning-warnings.py @@ -21,7 +21,8 @@ for log in glob.glob('/var/www/auto-build/' + date + '/logs/20*.txt'): .replace('/Users/pd/auto-build/', '')) f.close() -lf = open('/tmp/'+outputfilename, 'w') +outputfile = '/tmp/' + outputfilename +lf = open(outputfile, 'w') for line in logoutput: lf.write(line) lf.close() @@ -42,7 +43,7 @@ mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/' # upload the log file to the autobuild website rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename try: - p = subprocess.Popen(['rsync', '-ax', '/tmp/'+outputfilename, rsyncfile], + p = subprocess.Popen(['rsync', '-ax', outputfile, rsyncfile], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() except: mailoutput.append('rsync upload of the log failed!\n') diff --git a/scripts/load_every_help.py b/scripts/load_every_help.py index fc18d6dd..38de996d 100755 --- a/scripts/load_every_help.py +++ b/scripts/load_every_help.py @@ -193,7 +193,7 @@ mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/' # upload the log file to the autobuild website rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename try: - p = subprocess.Popen(['rsync', '-ax', outputfilename, rsyncfile], + p = subprocess.Popen(['rsync', '-ax', outputfile, rsyncfile], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() except: mailoutput.append('rsync upload of the log failed!\n') -- cgit v1.2.1