How to set %vendor in mock?
Ralf Corsepius
rc040203 at freenet.de
Mon Nov 5 07:14:32 UTC 2007
Hi,
in the past, I used to set up %vendor in mock by adding
...
config_opts['macros'] += '%vendor VENDOR'
...
to customized mock *.cfgs.
This stopped working with FC7's recent upgrade to mock-0.8.x:
# mock --configdir=/foo/etc/mock -r fedora-7-i386-test 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 "/foo/etc/mock/fedora-7-i386-test.cfg", line 7, in <module>
config_opts['macros'] += '%vendor VENDOR'
TypeError: unsupported operand type(s) for +=: 'dict' and 'str'
Any ideas?
Ralf
More information about the devel
mailing list