From 4f7003859c69f35ca1669442badf26e930a1e3ad Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 26 Feb 2015 20:30:15 +0100 Subject: reproducible: create two new schroots, reproducible-(sid|experimental) for the builders to run 'apt-get source' within --- bin/reproducible_setup_schroot.sh | 10 +--------- bin/schroot-create.sh | 11 +++++++---- 2 files changed, 8 insertions(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_setup_schroot.sh b/bin/reproducible_setup_schroot.sh index 6bb181b8..d8772112 100755 --- a/bin/reproducible_setup_schroot.sh +++ b/bin/reproducible_setup_schroot.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2012-2014 Holger Levsen +# Copyright 2012-2015 Holger Levsen # Copyright 2013 Antonio Terceiro # Copyright 2014 Joachim Breitner # released under the GPLv=2 @@ -27,12 +27,6 @@ shift DISTRO="$1" shift -if [ "$1" == "backports" ] ; then - BACKPORTS="deb $MIRROR ${DISTRO}-backports main" - BACKPORTSSRC="deb-src $MIRROR ${DISTRO}-backports main" - shift -fi - if [ ! -d "$CHROOT_BASE" ]; then echo "Directory $CHROOT_BASE does not exist, aborting." exit 1 @@ -55,8 +49,6 @@ bootstrap() { sudo chmod +x $CHROOT_TARGET/usr/sbin/policy-rc.d echo "Acquire::http::Proxy \"$http_proxy\";" | sudo tee $CHROOT_TARGET/etc/apt/apt.conf.d/80proxy >/dev/null echo "deb-src $MIRROR $DISTRO main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null - echo "${BACKPORTS}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null - echo "${BACKPORTSSRC}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null sudo chroot $CHROOT_TARGET apt-get update if [ -n "$1" ] ; then diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 5e7d8588..9de123ff 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -25,9 +25,12 @@ DISTRO="$1" shift if [ "$1" == "backports" ] ; then - BACKPORTS="deb $MIRROR ${DISTRO}-backports main" - BACKPORTSSRC="deb-src $MIRROR ${DISTRO}-backports main" + EXTRA_PACKAGES="deb $MIRROR ${DISTRO}-backports main" + EXTRA_SOURCES="deb-src $MIRROR ${DISTRO}-backports main" shift +elif [ "$1" == "reproducible" ] ; then + EXTRA_PACKAGES="deb http://reproducible.alioth.debian.org/debian/ ./" + EXTRA_SOURCES="deb-src http://reproducible.alioth.debian.org/debian/ ./" fi if [ ! -d "$CHROOT_BASE" ]; then @@ -52,8 +55,8 @@ bootstrap() { sudo chmod +x $CHROOT_TARGET/usr/sbin/policy-rc.d echo "Acquire::http::Proxy \"$http_proxy\";" | sudo tee $CHROOT_TARGET/etc/apt/apt.conf.d/80proxy >/dev/null echo "deb-src $MIRROR $DISTRO main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null - echo "${BACKPORTS}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null - echo "${BACKPORTSSRC}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null + echo "${EXTRA_PACKAGES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null + echo "${EXTRA_SOURCES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null sudo chroot $CHROOT_TARGET apt-get update if [ -n "$1" ] ; then -- cgit v1.2.3-70-g09d2