aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-10 20:26:20 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-10 20:26:20 +0000
commit85d10e9a84c3fd5c7a6a43fe533be99daea024c5 (patch)
tree96f91ac28f13b550d66d74fcd711c2b185a73ff5 /scripts
parentfb7c58ba27d5fc2b397e660900c3152df72ac53c (diff)
updated rsync uploading of log
svn path=/trunk/; revision=15564
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-for-type-punning-warnings.py2
-rwxr-xr-xscripts/load_every_help.py20
2 files changed, 10 insertions, 12 deletions
diff --git a/scripts/check-for-type-punning-warnings.py b/scripts/check-for-type-punning-warnings.py
index 3ac48e0c..a108e369 100755
--- a/scripts/check-for-type-punning-warnings.py
+++ b/scripts/check-for-type-punning-warnings.py
@@ -44,7 +44,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
cmd = ['rsync', '-axv', outputfile, rsyncfile]
-mailoutput.append(str(cmd))
+mailoutput.append(' '.join(cmd) + '\n')
p = subprocess.Popen(cmd,
shell=False,
stdout=subprocess.PIPE,
diff --git a/scripts/load_every_help.py b/scripts/load_every_help.py
index b4857ecd..7ffa2934 100755
--- a/scripts/load_every_help.py
+++ b/scripts/load_every_help.py
@@ -209,17 +209,15 @@ 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', outputfile, rsyncfile],
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait()
-except:
- mailoutput.append('rsync upload of the log failed!\n')
-
-# try to output the rsync log
-try:
- mailoutput.append(''.join(p.stdout.readlines()))
-except:
- pass
+cmd = ['rsync', '-axv', outputfile, rsyncfile]
+mailoutput.append(' '.join(cmd) + '\n')
+p = subprocess.Popen(cmd,
+ shell=False,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
+p.wait()
+mailoutput.append(''.join(p.stdout.readlines()))
+mailoutput.append(''.join(p.stderr.readlines()))
mailoutput.append('______________________________________________________________________\n\n')