diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-27 11:27:57 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-27 11:29:46 +0100 |
commit | 2578564632bcff380479473087e0c3bd9a61a33a (patch) | |
tree | dbcc1e0655a3ce7269397ddecd0115dbbb8a371a /bin/reproducible_build.sh | |
parent | c3a6a7e44f1d34e8990219ed5419420f509bbd63 (diff) | |
download | jenkins.debian.net-2578564632bcff380479473087e0c3bd9a61a33a.tar.xz |
reproducible: run 'apt-get source' in schroots and stop abusing the hosts sources.lists
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 8 |
1 files changed, 2 insertions, 6 deletions
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 |