Commit 6cdeb04c authored by Michał Kępień's avatar Michał Kępień
Browse files

Enable use of HTTPS Clang repositories on Debian

The apt.llvm.org package repository seems to have moved to HTTPS-only.
Without the apt-transport-https package installed, apt appears to hang
during routine operations (e.g. "apt-get update") when a repository like
this is enabled in its configuration.  Fix by installing the
apt-transport-https package whenever Clang repositories are to be used.
parent 9569c322
......@@ -9,12 +9,14 @@ RUN apt-get -y update
RUN apt-get -y dist-upgrade
RUN apt-get -y install curl
RUN if [ -n "@CLANG@" ] && [ "@VERSION@" != "sid" ]; then \
apt-get -y install apt-transport-https; \
curl -sSL -o /etc/apt/trusted.gpg.d/llvm.asc https://apt.llvm.org/llvm-snapshot.gpg.key; \
echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@ main" > /etc/apt/sources.list.d/llvm.list; \
echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@-9 main" >> /etc/apt/sources.list.d/llvm.list; \
echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@-10 main" >> /etc/apt/sources.list.d/llvm.list; \
fi
RUN if [ -n "@CLANG" ] && [ "@VERSION@" = "sid" ]; then \
apt-get -y install apt-transport-https; \
curl -sSL -o /etc/apt/trusted.gpg.d/llvm.asc https://apt.llvm.org/llvm-snapshot.gpg.key; \
echo "deb http://apt.llvm.org/unstable/ llvm-toolchain main" > /etc/apt/sources.list.d/llvm.list; \
echo "deb http://apt.llvm.org/unstable/ llvm-toolchain-9 main" >> /etc/apt/sources.list.d/llvm.list; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment