Description of problem: $ mock -r xxx python-matplotlib-1.4.3-4.fc23.src.rpm ERROR: Could not find required config file: /etc/mock/xxx.cfg ERROR: global name 'name' is not defined Traceback (most recent call last): File "/usr/sbin/mock", line 829, in <module> main() File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 588, in main config_opts = util.load_config(config_path, options.chroot, uidManager, __VERSION__, PKGPYTHONDIR) File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 1013, in load_config do_update_config(log, config_opts, chroot_cfg_path, uidManager, skipError=False) File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 980, in do_update_config if name == "default": NameError: global name 'name' is not defined Version-Release number of selected component (if applicable): mock-1.2.7-1.fc21.noarch How reproducible: 100%
-r (--root) option is used to point config, but not to specify name of chroot
The code uses a variable ("name") which is not declared anywhere.
Ok, sorry for misunderstanding. This has been already fixed in 168954d for #1194171 *** This bug has been marked as a duplicate of bug 1194171 ***