diff options
-rwxr-xr-x | bin/reproducible_setup_pbuilder.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 804acc74..13f44763 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -64,6 +64,8 @@ EOF # setup pbuilder for reproducible builds # setup_pbuilder() { + DISTRO=$1 + shift NAME=$1 shift PACKAGES="$@" @@ -71,7 +73,7 @@ setup_pbuilder() { TMPFILE=$(mktemp) LOG=$(mktemp) create_setup_tmpfile ${TMPFILE} "${PACKAGES}" - sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution sid + sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $DISTRO 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..." @@ -85,4 +87,8 @@ setup_pbuilder() { echo } -setup_pbuilder base-reproducible dpkg dpkg-dev debhelper +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 |