Description of problem: I think that Mock should enforce YUM's "assumeyes" option regardless what is configured in "config_opts['yum.conf']" since otherwise Mock is almost unusable. I believe that it can be achieved by calling YUM/DNF with "--assumeyes". Version-Release number of selected component (if applicable): mock-1.2.8-1.fc22.noarch How reproducible: always Steps to Reproduce: 1. create a custom Mock config (e.g. by copying the /etc/mock/fedora-22-x86_64.cfg) without "assumeyes=1" in "config_opts['yum.conf']" 2. run mock -r /path/to/the/config --init Actual results: INFO: mock.py version 1.2.8 starting (python version = 3.4.2)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run Start: clean chroot Finish: clean chroot Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled yum cache Start: cleaning yum metadata Finish: cleaning yum metadata INFO: enabled ccache Mock Version: 1.2.8 INFO: Mock Version: 1.2.8 Start: yum install Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. fedora/22/x86_64/metalink | 19 kB 00:00 updates/22/x86_64/metalink | 24 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package bash.x86_64 0:4.3.33-2.fc22 will be installed [...] --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing for group install "Buildsystem building group": bash x86_64 4.3.33-2.fc22 fedora 1.6 M [...] Transaction Summary ================================================================================ Install 24 Packages (+150 Dependent packages) Total download size: 131 M Installed size: 489 M Is this ok [y/d/N]: Exiting on user command [...] Expected results: mock chroot initialized ...or at least mention in the documentation (site-defaults.cfg?) that the option is required.
We provide the gun. It is up to you where you will be shooting. You can choose your leg, if you want. baseurl/metalink etc. is required too.... :) Nevertheless I added the warning to site-defaults.cfg in commit 83825b9
(In reply to Miroslav Suchý from comment #1) > baseurl/metalink etc. is required too.... :) Well, it's not required always. One can set "reposdir" and place the repositories there. Also, it's required by YUM (not Mock) and it's documented (at least in case of DNF). OTOH, "assumeyes" is required by Mock, it's not documented anywhere and for a beginner it might not be clear that Mock requires YUM to do anything and that it requires it to be configured somehow.
I understand the point with the gun and I'm a fan of this approach but I don't think that this is the case.
mock-1.2.10-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc22
mock-1.2.10-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc21
mock-1.2.10-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc20
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
Package mock-1.2.10-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.10-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6557/mock-1.2.10-1.el7 then log in and leave karma (feedback).
mock-1.2.10-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.10-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.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.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.