On 09/03/2014 04:58 PM, Lukas Slebodnik wrote:
On (03/09/14 11:36), Nikolai Kondrashov wrote:
> conf_dir=`mktemp --tmpdir --directory mock-config.XXXXXXXX`
> trap 'trap - RETURN; rm -R "$conf_dir";' RETURN
> - cp -r /etc/mock/* "$conf_dir"/
If you agree with my comment from pdifferent thread than you can copy just
/etc/mock/default.cfg
Not exactly. There is the /etc/mock/site-defaults.cfg also. I didn't want CI
to rely too much on the knowledge of nuances of mock configuration, so I just
copied everything. It doesn't take any noticeable time or space and is
somewhat more reliable against future changes of mock configuration structure.
Nick