From 44018d5e21de5f42612b003b584c3b42b0a8dd2a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Nov 2016 16:03:29 +0100 Subject: YOLO: deal with quoted-printable continuation lines, change the '=' at 1st lineend into a space character Signed-off-by: Holger Levsen --- bin/reproducible_setup_pbuilder.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'bin/reproducible_setup_pbuilder.sh') diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 28bad4fc..bf793104 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -100,13 +100,18 @@ setup_pbuilder() { fi # setup base.tgz sudo pbuilder --create $pbuilder_http_proxy --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $SUITE --extrapackages "$EXTRA_PACKAGES" - # apply further customisations, eg. install $PACKAGES from our repo - create_setup_tmpfile ${TMPFILE} "${PACKAGES}" - if [ "$DEBUG" = "true" ] ; then - cat "$TMPFILE" + + # TODO: add repo only for experimental and sid - keep testing "real" (and sid progressive!) + # then ximin can upload :) + if [ "$SUITE" != "testing" ] ; then + # apply further customisations, eg. install $PACKAGES from our repo + create_setup_tmpfile ${TMPFILE} "${PACKAGES}" + if [ "$DEBUG" = "true" ] ; then + cat "$TMPFILE" + fi + sudo pbuilder --execute $pbuilder_http_proxy --save-after-exec --basetgz /var/cache/pbuilder/${NAME}-new.tgz -- ${TMPFILE} | tee ${LOG} + rm ${TMPFILE} fi - sudo pbuilder --execute $pbuilder_http_proxy --save-after-exec --basetgz /var/cache/pbuilder/${NAME}-new.tgz -- ${TMPFILE} | tee ${LOG} - # FIXME: this code should be dropped it's just so new that a fixed dpkg is in testing as well… \o/ # finally, confirm things are as they should be # (we only have modified dpkg left in testing…) @@ -116,14 +121,14 @@ setup_pbuilder() { # for PKG in ${PACKAGES} ; do # egrep "http://reproducible.alioth.debian.org/debian(/|) ./ Packages" ${LOG} \ # | grep -v grep | grep "${PKG} " \ - # || ( echo ; echo "Package ${PKG} is not installed at all or probably rather not in our version, so removing the chroot and exiting now." ; sudo rm -v /var/cache/pbuilder/${NAME}-new.tgz ; rm $TMPFILE $LOG ; exit 1 ) + # || ( echo ; echo "Package ${PKG} is not installed at all or probably rather not in our version, so removing the chroot and exiting now." ; sudo rm -v /var/cache/pbuilder/${NAME}-new.tgz ; rm $LOG ; exit 1 ) # done #fi sudo mv /var/cache/pbuilder/${NAME}-new.tgz /var/cache/pbuilder/${NAME}.tgz # create stamp file to record initial creation date minus some hours so the file will be older than 24h when checked in <24h... touch -d "$(date -u -d '6 hours ago' '+%Y-%m-%d %H:%M')" /var/log/jenkins/${NAME}.tgz.stamp - rm ${TMPFILE} ${LOG} + rm ${LOG} } # -- cgit v1.2.3-54-g00ecf