Description of problem: I keep my own .cfg files local so they are easy to edit. Because of this, I use the --configdir option. If you are using a different config directory, upgrade mock, and don't notice that it now needs a logging.ini, you get: INFO: mock suid wrapper version 0.8.4 ERROR:root:No section: 'formatters' Traceback (most recent call last): File "/usr/libexec/mock.py", line 333, in <module> main(retParams) File "/usr/libexec/mock.py", line 239, in main logging.config.fileConfig(os.path.join(config_path, config_opts["log_config_file"])) File "/usr/lib/python2.5/logging/config.py", line 76, in fileConfig formatters = _create_formatters(cp) File "/usr/lib/python2.5/logging/config.py", line 107, in _create_formatters flist = cp.get("formatters", "keys") File "/usr/lib/python2.5/ConfigParser.py", line 511, in get raise NoSectionError(section) NoSectionError: No section: 'formatters' Why can't it just say: ERROR: ~/myconfigdir/logging.ini not found Version-Release number of selected component (if applicable): mock-0.8.4-2.fc7 How reproducible: Always
Checked for existence of logging.ini and error out if it's not found