Skip to content

Commit

Permalink
Lowercase rsync_proxy option
Browse files Browse the repository at this point in the history
Keep option in config file uppercase to maintain backwards compatability
  • Loading branch information
jrha committed Aug 2, 2024
1 parent 7f56d3c commit f11156b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f11156b

Please sign in to comment.