From 649b2968b890a0b4693914e8098a53131f887add Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 2 Jan 2021 02:54:54 -0500 Subject: [PATCH] maybe i can findally ignore return codes --- repomirror/fetcher/rsync.py | 4 ++-- 1 file 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))