build-devmock: Fix rhpkg installation
authorMartin Pitt <martin@piware.de>
Sun, 21 Jul 2019 08:27:26 +0000 (10:27 +0200)
committerMartin Pitt <martin@piware.de>
Sun, 21 Jul 2019 08:27:26 +0000 (10:27 +0200)
dnf.conf gets reset every time the chroot gets entered.

build-devmock

index 32639acf5d1344e221f657d8ad1711e3dfdcea99..1eb005097b78fd294f168ae928b1f3f1a7c9a21e 100755 (executable)
@@ -32,8 +32,7 @@ $MOCK --chroot -- ln -sf /home /var/home
 
 # install rhpkg
 $MOCK -i ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm
-$MOCK --chroot --cwd=/etc/yum.repos.d -- 'echo >> /etc/dnf/dnf.conf; curl --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo >> /etc/dnf/dnf.conf'
-$MOCK -i rhpkg
+$MOCK --chroot -- 'echo >> /etc/dnf/dnf.conf; curl --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo >> /etc/dnf/dnf.conf; dnf install -y rhpkg'
 
 # ssh looks at passwd, not $HOME
 $MOCK --chroot --unpriv -- rm -rf /builddir/.ssh