Red Hat Bugzilla – Bug 209407
mock doesn't honour use_cache in a config file
Last modified: 2013-01-09 23:06:09 EST
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):
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.