From 1c9ea6c2c0b524188de45818a14ab1d4fbd77ebd Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 21 Jul 2019 10:27:26 +0200 Subject: [PATCH] build-devmock: Fix rhpkg installation dnf.conf gets reset every time the chroot gets entered. --- build-devmock | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build-devmock b/build-devmock index 32639ac..1eb0050 100755 --- a/build-devmock +++ b/build-devmock @@ -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 -- 2.39.2