summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-17 23:46:45 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-17 23:46:45 +0200
commit6983ee99b68dc7c4fa6fa4f878b3a27b836c551b (patch)
tree99ce5e2dafb62f787ec7e59560c9b5458ca44737
parentab3d7ed1c3fe3b33f6ff9a45a943c81c2c69cafd (diff)
downloadjenkins.debian.net-6983ee99b68dc7c4fa6fa4f878b3a27b836c551b.tar.xz
reproducible: install debbindiff from sid in testing schroot for running debbindiff
-rwxr-xr-xbin/reproducible_setup_schroot.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/reproducible_setup_schroot.sh b/bin/reproducible_setup_schroot.sh
index a5d7986f..abe5c185 100755
--- a/bin/reproducible_setup_schroot.sh
+++ b/bin/reproducible_setup_schroot.sh
@@ -60,10 +60,12 @@ bootstrap() {
set -x
sudo chroot $CHROOT_TARGET apt-get update
# install debbindiff with all recommends...
- #sudo chroot $CHROOT_TARGET apt-get install -y --no-install-recommends "$@"
sudo chroot $CHROOT_TARGET apt-get install -y "$@"
if ! $DEBUG ; then set +x ; fi
else
+ #
+ # FIXME: this else block is unused - remove or merge everything else with schroot-create?
+ #
# schroot is used to download sources, so add our repo too
echo 'deb-src http://reproducible.alioth.debian.org/debian/ ./' > /etc/apt/sources.list.d/reproducible.list
TMPFILE=$(mktemp)
@@ -102,6 +104,16 @@ EOF
rm $TMPFILE
sudo chroot $CHROOT_TARGET apt-get update
fi
+ # use debbindiff from unstable
+ if [ "$SUITE" = "testing" ] ; then
+ echo "deb-src $MIRROR unstable main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null
+ sudo chroot $CHROOT_TARGET apt-get update
+ # install debbindiff from unstable without re-adding all recommends...
+ sudo chroot $CHROOT_TARGET apt-get install -y -t unstable --no-install-recommends debbindiff
+ fi
+ echo
+ sudo chroot $CHROOT_TARGET dpkg -l debbindiff
+ echo
sudo umount -l $CHROOT_TARGET/proc
}