Skip to content

Commit 1f7dcc8

Browse files
Use dnf on fedora (#251)
1 parent d99106b commit 1f7dcc8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/scripts/install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ EOF
232232
}
233233

234234
_install_dnf() {
235-
_install_rpm_key
236-
237-
dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT//:/:\/}/$DISTRO_REPO/${OBS_PROJECT}.repo
235+
dnf install -y 'dnf-command(config-manager)'
236+
dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT}/$DISTRO_REPO/${OBS_PROJECT}.repo
238237

239238
if [[ "$CRYSTAL_VERSION" == "latest" ]]; then
240239
dnf install -y crystal
@@ -269,7 +268,7 @@ case $DISTRO_REPO in
269268
_install_apt
270269
;;
271270
Fedora*)
272-
_install_yum
271+
_install_dnf
273272
;;
274273
RHEL*)
275274
_install_yum

0 commit comments

Comments
 (0)