mirror of
https://github.com/weewx/weewx.git
synced 2026-05-24 01:35:18 -04:00
rsync now works with Python 2.5 and 2.6 (not just 2.7)
This commit is contained in:
@@ -79,9 +79,10 @@ class RsyncUpload(object):
|
||||
cmd.extend([rsyncremotespec])
|
||||
|
||||
try:
|
||||
syslog.syslog(syslog.LOG_DEBUG, "rsyncupload: rsync invocation: %s" % " ".join(cmd))
|
||||
output = subprocess.check_output(cmd)
|
||||
stroutput = output.encode("utf-8")
|
||||
rsynccmd = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
|
||||
stdout = rsynccmd.communicate()[0]
|
||||
stroutput = stdout.encode("utf-8")
|
||||
syslog.syslog(syslog.LOG_DEBUG, "rsyncupload: rsync reported:\n%s" % stroutput)
|
||||
except OSError, e:
|
||||
if e.errno == errno.ENOENT:
|
||||
|
||||
@@ -6,6 +6,8 @@ weewx change history
|
||||
Fixed bug that prevented Fine Offset stations from downloading archive
|
||||
records if the archive database had no records in it.
|
||||
|
||||
rsync should now work with Python 2.5 and 2.6 (not just 2.7)
|
||||
|
||||
|
||||
2.3.0 04/10/13
|
||||
|
||||
|
||||
Reference in New Issue
Block a user