From f11156b48a20db9f53501b6a6eb78ba390ca6c72 Mon Sep 17 00:00:00 2001 From: James Adams Date: Mon, 15 Jul 2024 16:07:37 +0100 Subject: [PATCH] Lowercase rsync_proxy option Keep option in config file uppercase to maintain backwards compatability --- mrepo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrepo.py b/mrepo.py index 1cdf501..8439c1a 100755 --- a/mrepo.py +++ b/mrepo.py @@ -201,7 +201,7 @@ def __init__(self): self.ftp_proxy = self.getoption('main', 'ftp_proxy', None) self.http_proxy = self.getoption('main', 'http_proxy', None) self.https_proxy = self.getoption('main', 'https_proxy', None) - self.RSYNC_PROXY = self.getoption('main', 'RSYNC_PROXY', None) + self.rsync_proxy = self.getoption('main', 'RSYNC_PROXY', None) self.cmd = {} self.cmd['createrepo'] = self.getoption('main', 'createrepocmd', '/usr/bin/createrepo') @@ -1175,8 +1175,8 @@ def main(): os.environ['http_proxy'] = CONFIG.http_proxy if CONFIG.https_proxy: os.environ['https_proxy'] = CONFIG.https_proxy - if CONFIG.RSYNC_PROXY: - os.environ['RSYNC_PROXY'] = CONFIG.RSYNC_PROXY + if CONFIG.rsync_proxy: + os.environ['RSYNC_PROXY'] = CONFIG.rsync_proxy ### Select list of distributions in order of appearance if not OPTIONS.dists: