Bug 862245

Summary: pass proxy option to command line
Product: [Fedora] Fedora EPEL Reporter: Lameire Alexis <alexis.lameire>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: mebrown, msuchy, williams
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-18 13:44:15 EST Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Lameire Alexis 2012-10-02 08:30:00 EDT
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.
Comment 1 Miroslav Suchý 2014-11-18 13:44:15 EST
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