Bug 365721
Summary: | mock No section: 'formatters' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ralf Corsepius <rc040203> |
Component: | mock | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7 | CC: | mebrown |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-05 05:51:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ralf Corsepius
2007-11-04 10:56:37 UTC
Oops, forgot the version: mock-0.8.4-2.fc7 You need a 'logging.ini' in the --configdir specified. Just copy the default one from /etc/mock. Mock 0.8.5 has a better error message for this and will be released within the next couple weeks. (In reply to comment #2) > You need a 'logging.ini' in the --configdir specified. Just copy the default one > from /etc/mock. Mock 0.8.5 has a better error message for this and will be > released within the next couple weeks. OK, partial success. But why doesn't yum pick up logging.ini from the default location (i.e. treat --configdir as a search-path? This way, mock-0.8.4 would have stayed backward compatible and would not have broken existing configurations. However, with logging.ini copied over to .../foo, my formerly functional configurations still fail: # mock --configdir=/users/rtems/mock/etc/mock -r fedora-7-i386-rtems4.9 init INFO: mock suid wrapper version 0.8.4 ERROR: unsupported operand type(s) for +=: 'dict' and 'str' Traceback (most recent call last): File "/usr/libexec/mock.py", line 333, in <module> main(retParams) File "/usr/libexec/mock.py", line 249, in main execfile(cfg) File "/users/rtems/mock/etc/mock/fedora-7-i386-rtems4.9.cfg", line 7, in <module> config_opts['macros'] += '%vendor RTEMS Project http://www.rtems.org' TypeError: unsupported operand type(s) for +=: 'dict' and 'str' Background: I have config_opts['macros'] += '%vendor RTEMS Project http://www.rtems.org' In my customized *.cfgs look in defaults.cfg for the new format for adding rpm macros. I believe that the release notes covered the changes to configuration option handling for this specific option. config_opts['macros']['%your_macro_name'] = 'your macro value' There were a small handful of configuration options that changed for mock 0.8, but I tried to keep as much compatibility as possible. Most of the instances I am aware of were covered in the release announcement and release notes. I have 0.8.5 almost ready which fixes some small documentation problems and a few other small issues. Look in defaults.cfg for docs for all the currently available config options. |