@@ -196,8 +196,8 @@ _install_apt() {
196
196
fi
197
197
198
198
# Add repo signign key
199
- wget -qO- https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null
200
- echo " deb http://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} / /" | tee /etc/apt/sources.list.d/crystal.list
199
+ wget -qO- https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null
200
+ echo " deb http://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} / /" | tee /etc/apt/sources.list.d/crystal.list
201
201
apt-get update
202
202
203
203
if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
@@ -218,9 +218,9 @@ _install_yum() {
218
218
[crystal]
219
219
name=Crystal (${DISTRO_REPO} )
220
220
type=rpm-md
221
- baseurl=https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /
221
+ baseurl=https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /
222
222
gpgcheck=1
223
- gpgkey=https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /repodata/repomd.xml.key
223
+ gpgkey=https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /repodata/repomd.xml.key
224
224
enabled=1
225
225
EOF
226
226
234
234
_install_dnf () {
235
235
_install_rpm_key
236
236
237
- dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT} /$DISTRO_REPO /${OBS_PROJECT} .repo
237
+ dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /$DISTRO_REPO /${OBS_PROJECT} .repo
238
238
239
239
if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
240
240
dnf install -y crystal
@@ -250,7 +250,7 @@ _install_zypper() {
250
250
fi
251
251
252
252
_install_rpm_key
253
- zypper --non-interactive addrepo https://download.opensuse.org/repositories/${OBS_PROJECT} /$DISTRO_REPO /${OBS_PROJECT} .repo
253
+ zypper --non-interactive addrepo https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /$DISTRO_REPO /${OBS_PROJECT} .repo
254
254
zypper --non-interactive refresh
255
255
256
256
if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
0 commit comments