fix(yafti): If system package python3-pydantic is installed, then r… (#307)

This commit is contained in:
fiftydinar 2024-08-01 18:15:33 +02:00 committed by GitHub
commit 0ccf5ea243
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,11 @@ wget -O "/etc/yum.repos.d/ublue-os-staging-fedora-${OS_VERSION}.repo" "${REPO//[
# Increase repo priority, since downstream Ublue images like Bluefin/Aurora & Bazzite can explicitly disable this repo in another .repo file
echo "priority=90" >> "/etc/yum.repos.d/ublue-os-staging-fedora-${OS_VERSION}.repo"
# Remove system python3-pydantic package if it's already installed, so yafti's older version is installed instead
if rpm -q python3-pydantic >/dev/null; then
rpm-ostree uninstall python3-pydantic
fi
# Install yafti RPM to fixed version, since refactored yafti should come after this version
# We don't want to surprise users with that
rpm-ostree install yafti-0.8.0