summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_pbuilder.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-12 20:35:48 +0000
committerHolger Levsen <holger@layer-acht.org>2015-11-12 21:36:59 +0100
commitb881b2ebd01e3f86e083e29e2e330986b041c85b (patch)
tree093e23fb4120803101ade7bc5f1808c7b2bc3a57 /bin/reproducible_setup_pbuilder.sh
parentd5e6befb63675059b4f2c4f353c18b8dd86acb1a (diff)
downloadjenkins.debian.net-b881b2ebd01e3f86e083e29e2e330986b041c85b.tar.xz
reproducible: set up pbuilder before trying to run it
Diffstat (limited to 'bin/reproducible_setup_pbuilder.sh')
-rwxr-xr-xbin/reproducible_setup_pbuilder.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh
index 753d7fae..7ff584cd 100755
--- a/bin/reproducible_setup_pbuilder.sh
+++ b/bin/reproducible_setup_pbuilder.sh
@@ -57,6 +57,10 @@ Mb0BawlXZui0MNUSnZtxHMxrjejdvZdqtskHl9srB1QThH0jasmUqbQPxCnxMbf1
=X8YA
-----END PGP PUBLIC KEY BLOCK-----" | apt-key add -
echo 'deb http://reproducible.alioth.debian.org/debian/ ./' > /etc/apt/sources.list.d/reproducible.list
+echo
+echo "Configuring APT to ignore the Release file expiration"
+echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/398future
+echo
apt-get update
apt-get -y upgrade
apt-get install -y $@
@@ -67,9 +71,6 @@ dpkg -l
echo
for i in \$(dpkg -l |grep ^ii |awk -F' ' '{print \$2}'); do apt-cache madison "\$i" | head -1 | grep reproducible.alioth.debian.org || true ; done
echo
-echo "Configuring APT to ignore the Release file expiration"
-echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/398future
-echo
EOF
}