Bug 1694785 - Add debian-debug archive to apt sources in docker images. r=firefox-build-system-reviewers,sheehan,mhentges

We're going to need them for -dbgsym packages shortly.

Differential Revision: https://phabricator.services.mozilla.com/D106401
This commit is contained in:
Mike Hommey 2021-03-02 08:17:03 +00:00
parent 8768860a67
commit 318c279fe0

View File

@ -12,12 +12,18 @@ COPY setup_packages.sh /usr/local/sbin/
# %ARG DIST # %ARG DIST
# %ARG SNAPSHOT # %ARG SNAPSHOT
# Set apt sources list to a snapshot. # Set apt sources list to a snapshot.
RUN for s in debian_$DIST debian_$DIST-updates debian_$DIST-backports debian-security_$DIST/updates; do \ RUN for s in debian_$DIST debian_$DIST-updates debian_$DIST-backports debian-security_$DIST/updates debian-debug_$DIST-debug debian-debug_$DIST-proposed-updates-debug debian-debug_$DIST-backports-debug; do \
if [ $s = "debian_jessie-backports" ]; then \ case "$s" in \
debian_jessie-backports) \
echo "deb http://snapshot.debian.org/archive/debian-archive/20190328T105444Z/debian/ ${s#*_} main"; \ echo "deb http://snapshot.debian.org/archive/debian-archive/20190328T105444Z/debian/ ${s#*_} main"; \
else \ ;; \
debian-debug_jessie*) \
: No debian-debug archive for Jessie; \
;; \
*) \
echo "deb http://snapshot.debian.org/archive/${s%_*}/$SNAPSHOT/ ${s#*_} main"; \ echo "deb http://snapshot.debian.org/archive/${s%_*}/$SNAPSHOT/ ${s#*_} main"; \
fi; \ ;; \
esac; \
done > /etc/apt/sources.list && \ done > /etc/apt/sources.list && \
( echo 'quiet "true";'; \ ( echo 'quiet "true";'; \
echo 'APT::Get::Assume-Yes "true";'; \ echo 'APT::Get::Assume-Yes "true";'; \