From bd4c5b061d807ba5abba4a49bcaf17e0cdbc3a3f Mon Sep 17 00:00:00 2001 From: Maximiliano Curia Date: Fri, 24 Jun 2016 10:35:51 +0200 Subject: [PATCH] schroot: add the new dbgsym mirrors This allows the installation of the autogenerated dbgsym packages in the porterbox images. Signed-off-by: Julien Cristau --- .../files/schroot-setup.d/99porterbox-extra-sources | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/schroot/files/schroot-setup.d/99porterbox-extra-sources b/modules/schroot/files/schroot-setup.d/99porterbox-extra-sources index c87ecf4c6..299ce5c34 100755 --- a/modules/schroot/files/schroot-setup.d/99porterbox-extra-sources +++ b/modules/schroot/files/schroot-setup.d/99porterbox-extra-sources @@ -37,6 +37,7 @@ if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then SRCL="${CHROOT_PATH}/etc/apt/sources.list.d/auto.list" rm -f "$SRCL" mirror=${MIRROR:-http://ftp.debian.org/debian} + debugmirror=${DEBUGMIRROR:-http://debug.mirrors.debian.org/debian-debug/} case "$SUITE_ARCH" in ppc64) @@ -68,6 +69,9 @@ if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then experimental) echo "deb $mirror sid main" >> "$SRCL" echo "deb-src $mirror sid main" >> "$SRCL" + + echo "deb $debugmirror sid-debug main" >> "$SRCL" + echo "deb-src $debugmirror sid-debug main" >> "$SRCL" ;; sid|stretch) ;; @@ -76,6 +80,13 @@ if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then echo "deb-src http://security.debian.org/ ${suite_alias}/updates main" >> "$SRCL" ;; esac + case "${SUITE_BASE:-}" in + experimental|sid|stretch) + echo "deb $debugmirror ${suite_alias}-debug main" >> "$SRCL" + echo "deb-src $debugmirror ${suite_alias}-debug main" >> "$SRCL" + ;; + esac + echo "deb $mirror ${suite_alias} main" >> "$SRCL" echo "deb-src $mirror ${suite_alias} main" >> "$SRCL" -- 2.20.1