Red Hat Bugzilla – Bug 862245
pass proxy option to command line
Last modified: 2014-11-18 13:44:15 EST
This is a feature request to mock.
today it's possible to set the proxy globaly into the configuration file /etc/mock/site-defaults.cfg by setting the config_opts['http_proxy']
Unfortunently on computer without root privilage this can't be modified and the option don't set. In this cas i should be a good idea to add an option --override-config-opt=key:value to solve this case.
This can be done (since mock-1.2.0):
cp /etc/mock/fedora-20-x86_64.cfg ./
echo "config_opts['http_proxy']=...." > ./fedora-20-x86_64.cfg
mock -r ./fedora-20-x86_64.cfg foo.src.rpm
or you can use:
Change directory where config files are found