Skip to content

Commit

Permalink
add RSYNC_PROXY at mrepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ubeck committed Feb 26, 2012
1 parent 9136ec9 commit ee15ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mrepo
Expand Up @@ -208,6 +208,7 @@ class Config:
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.cmd = {}
self.cmd['createrepo'] = self.getoption('main', 'createrepocmd', '/usr/bin/createrepo')
Expand Down Expand Up @@ -1685,6 +1686,8 @@ def main():
os.environ['http_proxy'] = cf.http_proxy
if cf.https_proxy:
os.environ['https_proxy'] = cf.https_proxy
if cf.RSYNC_PROXY:
os.environ['RSYNC_PROXY'] = cf.RSYNC_PROXY

### Select list of distributions in order of appearance
if not op.dists:
Expand Down

0 comments on commit ee15ecd

Please sign in to comment.