From d933ac20a638accb01dd063dedb56be26d78a9dd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 16 Mar 2017 10:24:52 +0100 Subject: reproducible Debian: try to install+use diffoscope from experimental Signed-off-by: Holger Levsen --- bin/schroot-create.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/schroot-create.sh') diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 67e5ab14..194b4f49 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -181,8 +181,14 @@ bootstrap() { fi robust_chroot_apt install -y --no-install-recommends sudo robust_chroot_apt install -y --no-install-recommends $@ - # always try to use diffoscope from unstable - if [ "$SUITE" = "testing" ] && [ "$1" = "diffoscope" ] ; then + # try to use diffoscope from experimental + if ([ "$SUITE" = "unstable" ] || [ "$SUITE" = "testing" ] ) && [ "$1" = "diffoscope" ] ; then + echo "deb $MIRROR experimental main" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null + robust_chroot_apt update + # install diffoscope from experimental without re-adding all recommends... + sudo chroot $SCHROOT_TARGET apt-get install -y -t experimental --no-install-recommends diffoscope || echo "Warning: diffoscope from experimental is uninstallable at the moment." + elif [ "$SUITE" = "testing" ] && [ "$1" = "diffoscope" ] ; then + # always try to use diffoscope from unstable on testing echo "deb $MIRROR unstable main" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null robust_chroot_apt update # install diffoscope from unstable without re-adding all recommends... -- cgit v1.2.3-54-g00ecf