Browse files

add RSYNC_PROXY at mrepo

  • Loading branch information...
1 parent 9136ec9 commit ee15ecde37252c66d8812311339db5fc05903b39 @ubeck ubeck committed Feb 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mrepo
View
3 mrepo
@@ -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')
@@ -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:

0 comments on commit ee15ecd

Please sign in to comment.