Description of problem: Put the following line in a configuration file: config_opts['use_cache'] = True Run 'mock init' Note that mock didn't use the cache. My python is very weak, but to my untrained eye it looks like the default value of False for the --autocache command line option overrides the config file even when it's not specified. Version-Release number of selected component (if applicable): mock-0.6.5-1
I believe you are correct (that the command line option default is overriding the config file). It may be that we need to default things like this to None, so that we don't override something that didn't have a command line value.
modified set_config_opts_per_cmdline() to be more intelligent about overriding defaults with commandline values.