Skip to content

Commit

Permalink
⚠️ Use older one if latest equivs definition not found (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotokaze authored Mar 22, 2023
1 parent 248f852 commit 05046f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ RUN if [ ! -d texlive ] \

# Create dummy package with equivs and generate cache
ARG RELEASE
RUN curl -sSL https://tug.org/texlive/files/debian-equivs-${RELEASE}-ex.txt \
| sed -e "/^Version:\ /s/"${RELEASE}"/9999/" -e "/^Depends:\ freeglut3$/d" \
RUN (curl -sLf "https://tug.org/texlive/files/debian-equivs-"${RELEASE}"-ex.txt" || curl -sSLf "https://tug.org/texlive/files/debian-equivs-"$((${RELEASE}-1))"-ex.txt" ) \
| sed -e "/^Version:\ /s/"${RELEASE}"/9999/" -e "/^Version:\ /s/"$((${RELEASE}-1))"/9999/" -e "/^Depends:\ freeglut3$/d" \
| equivs-build - \
&& dpkg -i texlive-local_9999.99999999-1_all.deb \
&& apt install -qy --no-install-recommends \
Expand Down

0 comments on commit 05046f5

Please sign in to comment.