Skip to content

Commit

Permalink
Use IPv4, no curl
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed May 3, 2024
1 parent 2bf48c0 commit d7e8da0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM pandoc/core:3.1.13-alpine as alpine-latex

# NOTE: to maintainers, please keep this listing alphabetical.
RUN apk --no-cache add \
bind-tools \
ca-certificates \
curl \
fontconfig \
freetype \
gnupg \
Expand Down
6 changes: 1 addition & 5 deletions common/latex/install-texlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$tlversion" = "$default_version" ]; then
# always use the mirror URL, we'd run into problems whenever we get
# installer and signatures from different mirrors that are not 100%
# in sync.
installer_url=$(wget --quiet --output-document=/dev/null \
installer_url=$(wget -4 --quiet --output-document=/dev/null \
--server-response \
http://mirror.ctan.org/systems/texlive/tlnet/ \
2>&1 | \
Expand All @@ -32,10 +32,6 @@ ftp://tug.org/historic/systems/texlive/$tlversion/tlnet-final/"
ftp://tug.org/historic/systems/texlive/$tlversion/tlnet-final"
fi

if [ -z "${installer_url}" ]; then
installer_url=$(curl -L -o /dev/null -w '%{url_effective}' https://mirror.ctan.org/systems/texlive/tlnet/)
fi

# Log the installer and repository url
printf 'installer URL: %s\n' "${installer_url}"
printf 'repository: %s\n' "${repository}"
Expand Down

0 comments on commit d7e8da0

Please sign in to comment.