Description of problem: Running the following command causes mock to end with traceback: mock --rebuild <path_to_SRPM> --root rhel-6.7-candidate-x86_64 --no-cleanup-after Version-Release number of selected component (if applicable): mock-1.2.7-1.fc21.noarch How reproducible: always Steps to Reproduce: 1. run "mock --rebuild <path_to_SRPM> --root rhel-6.7-candidate-x86_64 --no-cleanup-after" Actual results: $ mock --rebuild <path_to_SRPM> --root rhel-6.7-candidate-x86_64 --no-cleanup-after ERROR: Could not find required config file: /etc/mock/rhel-6.7-candidate-x86_64.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 Expected results: No traceback, just an error message Additional info:
Fixed in: * 168954d pass variable "name" [RHBZ#1194171]
*** Bug 1196902 has been marked as a duplicate of this bug. ***
Same here with: mock --rebuild some.src.rpm -r sometypo
anyone can tell me wheres the fix for this bug ?
https://git.fedorahosted.org/cgit/mock.git/commit/?id=168954d9e22db9b60e29a56b003f7199e9e83bde
Can you rebuild the packages and submit updates with this fix ?
I am fixing other BZs and I will release it when mock is ready to be released. ETA is approx. one week.
mock-1.2.8-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc22
mock-1.2.8-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc21
mock-1.2.8-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc20
mock-1.2.8-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el7
mock-1.2.8-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el6
Package mock-1.2.8-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.2.8-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6057/mock-1.2.8-1.el7 then log in and leave karma (feedback).
mock-1.2.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el7
mock-1.2.10-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el6
mock-1.2.10-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.