feat: use bling COPR to enable f39 builds with ublue-update

This commit is contained in:
gerblesh 2023-09-24 11:42:41 -07:00 committed by Tulili
parent 0797124cbc
commit 41edad5074
2 changed files with 9 additions and 2 deletions

View file

@ -3,6 +3,10 @@
# Tell build process to exit if there are any errors.
set -oue pipefail
# Fetch bling COPR
REPO="https://copr.fedorainfracloud.org/coprs/ublue-os/bling/repo/fedora-${OS_VERSION}/ublue-os-bling-fedora-${OS_VERSION}.repo"
wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
get_yaml_array INSTALL '.install[]' "$1"
export BLING_DIRECTORY="/tmp/bling"
@ -16,4 +20,7 @@ for ITEM in "${INSTALL[@]}"; do
echo "Pulling from bling: $ITEM"
# The trainling newline from $ITEM is removed
eval "$PWD/${ITEM%$'\n'}.sh"
done
done
# Remove bling COPR
rm /etc/yum.repos.d/ublue-os-bling-fedora-*.repo

View file

@ -27,4 +27,4 @@ if [[ -f "$RPM_OSTREE_CONFIG" ]]; then
fi
systemctl disable rpm-ostreed-automatic.timer
rpm-ostree install "$BLING_DIRECTORY"/rpms/ublue-update*.rpm
rpm-ostree install ublue-update