summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2021-01-02 02:54:54 -0500
committerbrent s <bts@square-r00t.net>2021-01-02 02:54:54 -0500
commit649b2968b890a0b4693914e8098a53131f887add (patch)
tree53c9620c82b601e2fe72b0e250f570797c595a0d
parentcd29b8d13f440c61fd954268fdf55a57191713df (diff)
downloadRepoMirror-649b2968b890a0b4693914e8098a53131f887add.tar.xz
maybe i can findally ignore return codes
-rw-r--r--repomirror/fetcher/rsync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repomirror/fetcher/rsync.py b/repomirror/fetcher/rsync.py
index 2d018d8..27e8191 100644
--- a/repomirror/fetcher/rsync.py
+++ b/repomirror/fetcher/rsync.py
@@ -85,7 +85,7 @@ class RSync(_base.BaseFetcher):
rtrn = cmd.returncode
if stdout != '':
_logger.debug('STDOUT: {0}'.format(stdout))
- if stderr != '' or (rtrn != 0 and rtrn not in self.rsync_ignores):
+ if rtrn != 0 and rtrn not in self.rsync_ignores:
err = rsync_returns.returns[rtrn]
errmsg = 'Rsync to {0}:{1} returned'.format(self.domain, self.port)
debugmsg = 'Rsync command {0} returned'.format(' '.join(cmd_str))
@@ -120,7 +120,7 @@ class RSync(_base.BaseFetcher):
rtrn = cmd.returncode
if stdout != '':
_logger.debug('STDOUT: {0}'.format(stdout))
- if stderr != '' or (rtrn != 0 and rtrn not in self.rsync_ignores):
+ if rtrn != 0 and rtrn not in self.rsync_ignores:
err = rsync_returns.returns.get(rtrn, '(UNKNOWN ERROR)')
errmsg = 'Rsync to {0}:{1} returned'.format(self.domain, self.port)
debugmsg = 'Rsync command {0} returned'.format(' '.join(cmd_str))