Skip to content

Commit 7999557

Browse files
committed
fix: try fixing error on debian
1 parent 2b171db commit 7999557

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/r-apt/install.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ Pin: release l=CRAN-Apt Packages
144144
Pin-Priority: 700
145145
EOF
146146
elif [ "${ID}" = "debian" ]; then
147+
# On Debian, renv, languageserver and httpgd are not available via apt
148+
# shellcheck disable=SC2206
149+
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-renv})
150+
# shellcheck disable=SC2206
151+
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-languageserver})
152+
# shellcheck disable=SC2206
153+
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-httpgd})
147154
if [ "${USE_TESTING}" = "true" ]; then
148155
echo "Set up Debian testing..."
149156
echo "deb http://http.debian.net/debian testing main" >/etc/apt/sources.list.d/debian-testing.list
@@ -154,13 +161,6 @@ elif [ "${ID}" = "debian" ]; then
154161
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x95c0faf38db3ccad0c080a7bdc78b2ddeabc47b7" | tee -a /etc/apt/trusted.gpg.d/cran_debian_key.asc >/dev/null
155162
echo "deb http://cloud.r-project.org/bin/linux/debian ${VERSION_CODENAME}-cran40/" >/etc/apt/sources.list.d/cran-debian.list
156163
fi
157-
# On Debian, renv, languageserver and httpgd are not available via apt
158-
# shellcheck disable=SC2206
159-
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-renv})
160-
# shellcheck disable=SC2206
161-
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-languageserver})
162-
# shellcheck disable=SC2206
163-
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-httpgd})
164164
fi
165165

166166
apt-get update -y

0 commit comments

Comments
 (0)