From 2ef22a0e1d1ac1845a717da0952ad2b2d3f98c92 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Sep 2015 23:12:37 +0200 Subject: reproducible: install sudo and diffoscope in two steps two minimize impact if one is not available --- bin/schroot-create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/schroot-create.sh') diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index c533d2e5..d523a04e 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -156,7 +156,8 @@ bootstrap() { if [ "$1" = "diffoscope" ] ; then robust_chroot_apt install -y --install-recommends diffoscope fi - robust_chroot_apt install -y --no-install-recommends "$@ sudo" + 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 echo "deb $MIRROR unstable main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null -- cgit v1.2.3-54-g00ecf