Title: [PATCH - RFC] unify config parsing

The recent changes to add default.cfg processing bumped the number of lines in main(). The following patch unifies all config file parsing into one small loop, removing about a dozen redundant lines of code. It also removes an unnecessary variable, config_path and uses options.configdir directly.

This is an RFC because it changes mock behaviour in the following way, which requres discussion: The "-r" option is no longer required. You will not get an error message for a missing "-r" option.

I think this might be useful for the case where somebody sets up their 'default.cfg' to be a full config.

Comments?
--
Michael

<<mock-cfgunify.patch>>

Attachment: mock-cfgunify.patch
Description: mock-cfgunify.patch

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to