File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,7 @@ _install_rpm_key() {
215
215
rpm --verbose --import https://build.opensuse.org/projects/${OBS_PROJECT} /signing_keys/download? kind=gpg
216
216
}
217
217
218
- _install_yum () {
219
- _install_rpm_key
220
-
218
+ _add_yum_repo () {
221
219
cat > /etc/yum.repos.d/crystal.repo << EOF
222
220
[crystal]
223
221
name=Crystal (${DISTRO_REPO} )
@@ -227,6 +225,11 @@ gpgcheck=1
227
225
gpgkey=https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /repodata/repomd.xml.key
228
226
enabled=1
229
227
EOF
228
+ }
229
+
230
+ _install_yum () {
231
+ _install_rpm_key
232
+ _add_yum_repo
230
233
231
234
if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
232
235
yum install -y crystal
236
239
}
237
240
238
241
_install_dnf () {
239
- dnf install -y ' dnf-command(config-manager) '
240
- dnf config-manager --add-repo https://download.opensuse.org/repositories/ ${OBS_PROJECT} / $DISTRO_REPO / ${OBS_PROJECT} .repo
242
+ _install_rpm_key
243
+ _add_yum_repo
241
244
242
245
if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
243
246
dnf install -y crystal
You can’t perform that action at this time.
0 commit comments