Bug 862245 - pass proxy option to command line
Summary: pass proxy option to command line
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: el6
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-02 12:30 UTC by Lameire Alexis
Modified: 2014-11-18 18:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-18 18:44:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lameire Alexis 2012-10-02 12:30:00 UTC
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 18:44:15 UTC
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:
       --configdir=CONFIGDIR
              Change directory where config files are found


Note You need to log in before you can comment on or make changes to this bug.