From 2578564632bcff380479473087e0c3bd9a61a33a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 11:27:57 +0100 Subject: reproducible: run 'apt-get source' in schroots and stop abusing the hosts sources.lists --- bin/reproducible_build.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 050c1c3b..551b6e53 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -143,10 +143,7 @@ else echo "Starting to build ${SRCPACKAGE}/${SUITE} on $DATE" | tee ${RBUILDLOG} echo "The jenkins build log is/was available at $BUILD_URL/console" | tee -a ${RBUILDLOG} set +e - # host has only sid in deb-src in sources.list - # FIXME: this shall be fixed using schroots - # also see 10 lines below for the same code... - apt-get --download-only --only-source source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1 + schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1 RESULT=$? if [ $RESULT != 0 ] ; then # sometimes apt-get cannot download a package for whatever reason. @@ -155,8 +152,7 @@ else ls -l ${SRCPACKAGE}* | tee -a ${RBUILDLOG} echo "Sleeping 5m before re-trying..." | tee -a ${RBUILDLOG} sleep 5m - # host has only sid in deb-src in sources.list - apt-get source --download-only --only-source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1 + schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} >> ${RBUILDLOG} 2>&1 RESULT=$? fi if [ $RESULT != 0 ] ; then -- cgit v1.2.3-70-g09d2