summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-27 14:06:42 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-27 14:06:42 +0100
commitb26328f927e720961d04f0ff6fcc7d24f645b407 (patch)
treeeec4c8dbc52120c34aa82c8c36bd2113037f3a46
parent3b33cb0e30215b31aaad48fd8d653a25e21f9c23 (diff)
downloadjenkins.debian.net-b26328f927e720961d04f0ff6fcc7d24f645b407.tar.xz
reproducible: add support for creating distro-specific base.tgz. work in progress: not sure yet whether I prefer more jobs instead..
-rwxr-xr-xbin/reproducible_setup_pbuilder.sh10
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