Description of problem: When trying to run 'fedpkg mockbuild' I get an error. It looks like the reason is a missing '-y' on the 'yum install' command line: perhaps dnf handles lack of tty differently or something? Version-Release number of selected component (if applicable): [twaugh@river:5 tigervnc (f22 %)]$ rpm -q fedpkg mock yum dnf fedpkg-1.19-2.fc22.noarch mock-1.2.7-1.fc22.noarch yum-3.4.3-505.fc22.noarch dnf-0.6.5-1.fc22.noarch How reproducible: 100% Steps to Reproduce: 1.e.g. check out branch f22 of the tigervnc package repo 2.fedpkg mockbuild Actual results: Wrote: /home/twaugh/devel/fedora/tigervnc/tigervnc-1.4.3-3.fc22.src.rpm INFO: mock.py version 1.2.7 starting (python version = 3.4.2)... Start: init plugins INFO: selinux enabled Finish: init plugins Start: run INFO: Start(/home/twaugh/devel/fedora/tigervnc/tigervnc-1.4.3-3.fc22.src.rpm) Config(fedora-22-x86_64) 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.7 INFO: Mock Version: 1.2.7 Start: yum install Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. To transfer transaction metadata from yum to DNF, run 'dnf migrate'Redirecting to '/usr/bin/dnf --installroot /var/lib/mock/fedora-22-x86_64/root/ --releasever 22 install @buildsys-build --setopt=tsflags=nocontexts' Fedora 22 - x86_64 1.3 MB/s | 41 MB 00:31 Fedora 22 - x86_64 - Test Updates 192 kB/s | 12 MB 01:05 Fedora 22 - x86_64 - Updates 346 B/s | 335 B 00:00 [...] Using metadata from Thu Apr 9 16:18:07 2015 (0:01:43 hours old) Dependencies resolved. ================================================================================ Group Packages ================================================================================ Marking installed: Buildsystem building group tar xz sed findutils bzip2 redhat-rpm-config make shadow-utils coreutils which gcc-c++ unzip fedora-release cpio gawk gcc util-linux bash info grep diffutils patch rpm-build gzip ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: audit-libs x86_64 2.4.1-1.fc22 fedora 93 k basesystem noarch 10.0-10.fc21 fedora 5.3 k bash x86_64 4.3.33-2.fc22 fedora 1.6 M [...] xz-libs x86_64 5.2.0-2.fc22 fedora 89 k zip x86_64 3.0-13.fc22 fedora 267 k zlib x86_64 1.2.8-7.fc22 fedora 95 k Transaction Summary ================================================================================ Install 175 Packages Total download size: 131 M Installed size: 493 M ERROR: Exception(/home/twaugh/devel/fedora/tigervnc/tigervnc-1.4.3-3.fc22.src.rpm) Config(fedora-22-x86_64) 2 minutes 6 seconds INFO: Results and/or logs in: /home/twaugh/devel/fedora/tigervnc/results_tigervnc/1.4.3/3.fc22 INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed. See logs for output. # /usr/bin/yum --installroot /var/lib/mock/fedora-22-x86_64/root/ --releasever 22 install @buildsys-build --setopt=tsflags=nocontexts Operation aborted. Is this ok [y/N]: Could not run mockbuild: Command '['mock', '-r', 'fedora-22-x86_64', '--resultdir', '/home/twaugh/devel/fedora/tigervnc/results_tigervnc/1.4.3/3.fc22', '--rebuild', '/home/twaugh/devel/fedora/tigervnc/tigervnc-1.4.3-3.fc22.src.rpm']' returned non-zero exit status 1
reassiging to mock as that is where the error is coming from. mock likely needs to call yum-deprecated not yum now
I tried adding this line to /etc/mock/fedora-22-x86_64.cfg: config_opts['package_manager'] = 'dnf' and it worked around the problem.
*** This bug has been marked as a duplicate of bug 1211978 ***