Don't try to import the signing key. YUM/RPM will do that for us, per Devrim.

This commit is contained in:
Dave Page 2020-05-28 16:04:07 +01:00
parent 09b76b306c
commit bda62cb1f1

View File

@ -88,9 +88,6 @@ EOF
if [ ${INCLUDE_KEY} -eq 1 ]; then if [ ${INCLUDE_KEY} -eq 1 ]; then
cat << EOF >> ${BUILDROOT}/${DISTRO}-repo.spec cat << EOF >> ${BUILDROOT}/${DISTRO}-repo.spec
/etc/pki/rpm-gpg/PGADMIN_PKG_KEY /etc/pki/rpm-gpg/PGADMIN_PKG_KEY
%post
rpm --import /etc/pki/rpm-gpg/PGADMIN_PKG_KEY
EOF EOF
test -d ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg || mkdir -p ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg test -d ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg || mkdir -p ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg
cp pkg/redhat/PGADMIN_PKG_KEY ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg/ cp pkg/redhat/PGADMIN_PKG_KEY ${BUILDROOT}/${DISTRO}-repo/etc/pki/rpm-gpg/