From ee656aea4fe82ebead1e8feb5bd4508a557b44f4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 14:40:43 +0100 Subject: reproducible: use SUITE consistently, accept SUITE as param, default to sid --- bin/reproducible_setup_pbuilder.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 13f44763..966c8167 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -10,6 +10,13 @@ common_init "$@" # common code defining db access . /srv/jenkins/bin/reproducible_common.sh +# support different suites +if [ -z "$1" ] ; then + SUITE="sid" +else + SUITE="$1" +fi + # # create script to configure a pbuilder chroot # @@ -64,7 +71,7 @@ EOF # setup pbuilder for reproducible builds # setup_pbuilder() { - DISTRO=$1 + SUITE=$1 shift NAME=$1 shift @@ -73,7 +80,7 @@ setup_pbuilder() { TMPFILE=$(mktemp) LOG=$(mktemp) create_setup_tmpfile ${TMPFILE} "${PACKAGES}" - sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $DISTRO + sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $SUITE sudo pbuilder --execute --save-after-exec --basetgz /var/cache/pbuilder/${NAME}-new.tgz -- ${TMPFILE} | tee ${LOG} echo echo "Now let's see whether the correct packages where installed..." @@ -87,8 +94,6 @@ setup_pbuilder() { echo } -for SUITE in $SUITES ; do - # FIXME: base-reproducible should be renamed to include the suite - # FIXME: DISTRO=experimental needs sid as base distro - setup_pbuilder $SUITE base-reproducible dpkg dpkg-dev debhelper -done +# FIXME: base-reproducible should be renamed to include the suite +# FIXME: SUITE=experimental needs sid as base distro +setup_pbuilder $SUITE base-reproducible dpkg dpkg-dev debhelper -- cgit v1.2.3-54-g00ecf