Skip to content

Commit

Permalink
Enable repos the dnf5 way
Browse files Browse the repository at this point in the history
also, we don't have to disable the mini-tps copr repo here
if we do that where we enabled it (the prepare.sh in installability pipeline)
  • Loading branch information
jpopelka committed Jun 17, 2024
1 parent 79ddf49 commit 1478b41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions profiles/fedora/prepare-system
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ skip_if_unavailable=True
EOF
fi

# Ugly hack for
# https://github.com/fedora-ci/mini-tps/issues/57#issuecomment-2134998129
# Remove it with a proper fix for mini-tps/issues/57 !
"$YUMDNFCMD" -y install dnf-plugins-core

# Make sure fedora and fedora-updates repos are enabled
"$YUMDNFCMD" config-manager --set-enabled 'fedora' 'updates'
# Disable all COPR repositories (mini-tps, ...)
"$YUMDNFCMD" config-manager --set-disabled 'copr:*'
if [[ "$YUMDNFCMD" == "dnf5" ]]; then
dnf5 -y install dnf5-plugins # config-manager
dnf5 config-manager setopt fedora.enabled=1 updates.enabled=1
dnf5 repo list
else
"$YUMDNFCMD" -y install dnf-plugins-core # config-manager
"$YUMDNFCMD" config-manager --set-enabled fedora updates
fi

echo "Recreating the DNF cache..."
"$YUMDNFCMD" clean all
Expand Down

0 comments on commit 1478b41

Please sign in to comment.