From d135b7730939216e86ccc683f680a24fd99ecee4 Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:14:41 +0200 Subject: [PATCH] fix(yafti): If system package `python3-pydantic` is installed, then remove it Yafti's older version of it should be installed instead --- modules/yafti/yafti.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/yafti/yafti.sh b/modules/yafti/yafti.sh index ba31dbc..d8e1af4 100644 --- a/modules/yafti/yafti.sh +++ b/modules/yafti/yafti.sh @@ -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