Red Hat Bugzilla – Bug 215168
Mock overrides defaults when command-line options are not set
Last modified: 2013-01-09 23:07:53 EST
Flags which can be set from the command-line always override values from
/etc/mock/defaults.cfg even if not present on the command-line. For example
debug can't be permanently enabled in defaults.cfg as the default flag value is
false (when --debug is not used) and overrides the debug value. I attached a
patch which checks the value of the flags before overriding value.
1. Change /etc/mock/defaults.cfg, set config_opts['use_cache'] = True
2. Run mock w/o --autocache when building a package
Doesn't use autocache even though its been enabled in defaults.cfg
Autocache should be enabled by defaults.cfg during a mock build.
Created attachment 140971 [details]
Patch to prevent defaults.cfg settings from being overwritten
Applied. Thanks for the patch. Should be fixed in 0.6.9 (next release)
Sorry it took so long, but I wanted to give the entire
defaults+commandline+configs processing a good look before trying to "fix" it.