chore(ublue-update): Install topgrade as RPM instead using pip

This commit is contained in:
fiftydinar 2024-08-01 08:29:36 +02:00 committed by GitHub
parent 0dfe1bb314
commit fd4c653d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,17 +27,12 @@ if [[ -f "$RPM_OSTREE_CONFIG" ]]; then
fi
systemctl disable rpm-ostreed-automatic.timer
# Install python3-pip if it's not already installed
if ! rpm -q python3-pip > /dev/null; then
rpm-ostree install python3-pip
fi
# Fetch ublue COPR
REPO="https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-${OS_VERSION}/ublue-os-staging-fedora-${OS_VERSION}.repo"
wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
# topgrade is REQUIRED by ublue-update to install
pip install --prefix=/usr topgrade
rpm-ostree install topgrade
rpm-ostree install ublue-update
# Remove ublue COPR