1
0

Install distribution-gpg-keys if it is not already installed

We need distribution-gpg-keys to provide us the Mageia GPG key file
in the distribution-agnostic location. As this package is available
on virtually every distribution that also has DNF, it's easily relied
upon.
This commit is contained in:
Neal Gompa 2020-01-05 16:32:04 -05:00
parent c5531c36c3
commit 2bef753269

View File

@ -85,6 +85,15 @@ function verify_disk_space()
function createchroot() function createchroot()
{ {
title "Making chroot" title "Making chroot"
if ! [ -f /usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia ]; then
title "distribution-gpg-keys package not present : installing distribution-gpg-keys"
/usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install distribution-gpg-keys
if [ ${?} -ne 0 ]; then
error "line ${LINENO} can't install distribution-gpg-keys : exiting"
exit ${ERR_1}
fi
fi
if ! [ -f /bin/qemu-arm-static ]; then if ! [ -f /bin/qemu-arm-static ]; then
title "Qemu package not present : installing qemu packages" title "Qemu package not present : installing qemu packages"
/usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install qemu-user-static /usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install qemu-user-static