]> piware.de Git - bin.git/commitdiff
build-devmock: Set up rhpkg
authorMartin Pitt <martin@piware.de>
Wed, 17 Jul 2019 11:37:14 +0000 (13:37 +0200)
committerMartin Pitt <martin@piware.de>
Wed, 17 Jul 2019 11:37:14 +0000 (13:37 +0200)
build-devmock

index fabee7a2ea82b614e55e1a45b9187d3fddf5bd93..60f51274e84d41ba769db923644fec2735c8e32e 100755 (executable)
@@ -27,8 +27,14 @@ fi
 EOF
 
 # make mock compatible with ostree's /home → /var/home structure
-mock -r ${OS:-default} --chroot -- ln -sf /home /var/home
+$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
 
 # ssh looks at passwd, not $HOME
-mock -r ${OS:-default} --chroot --unpriv -- rm -rf /builddir/.ssh
-mock -r ${OS:-default} --chroot --unpriv -- ln -s /home/martin/.ssh /builddir/.ssh
+$MOCK --chroot --unpriv -- rm -rf /builddir/.ssh
+$MOCK --chroot --unpriv -- ln -s /home/martin/.ssh /builddir/.ssh
+$MOCK --chroot --unpriv -- ln -s /home/martin/upstream /builddir/upstream