summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-12 15:43:58 +0000
committerHolger Levsen <holger@layer-acht.org>2015-11-12 18:14:59 +0100
commit765ee9d24f25d790dbfb2294ff76b103beb730a6 (patch)
tree10bc16c1b71e2c3837d686cca5d7724774c3279d
parent948c4b46b7759386cbc731a7a06055df8dc3133c (diff)
downloadjenkins.debian.net-765ee9d24f25d790dbfb2294ff76b103beb730a6.tar.xz
reproducible: set 'Acquire::Check-Valid-Until false' in the reproducible chroots
-rwxr-xr-xbin/reproducible_setup_pbuilder.sh3
-rwxr-xr-xbin/schroot-create.sh10
2 files changed, 11 insertions, 2 deletions
diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh
index b4e93027..bbd7864b 100755
--- a/bin/reproducible_setup_pbuilder.sh
+++ b/bin/reproducible_setup_pbuilder.sh
@@ -67,6 +67,9 @@ 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/400future
+echo
EOF
}
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 6f7aa648..ca2a69ff 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -57,8 +57,10 @@ fi
#
# create script to add key for reproducible repo
+# and configuring APT to ignore Release file expiration (since the host may
+# have the date set far in the future)
#
-add_repokey() {
+reproducible_setup() {
cat > $1 <<- EOF
echo "-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
@@ -89,6 +91,10 @@ Mb0BawlXZui0MNUSnZtxHMxrjejdvZdqtskHl9srB1QThH0jasmUqbQPxCnxMbf1
4LhIp6XlXJFF1btgfCexNmcPuqeOMMDQ+du6Hqj2Yl5GYo2McWvjpSgkt5VmQfIz
=X8YA
-----END PGP PUBLIC KEY BLOCK-----" | apt-key add -
+echo
+echo "Configuring APT to ignore the Release file expiration"
+echo 'Acquire::Check-Valid-Until "false"' > /etc/apt/apt.conf.d/400future
+echo
EOF
}
@@ -134,7 +140,7 @@ bootstrap() {
if $REPRODUCIBLE ; then
TMPFILE=$(mktemp -u)
- add_repokey $SCHROOT_TARGET/$TMPFILE
+ reproducible_setup $SCHROOT_TARGET/$TMPFILE
sudo chroot $SCHROOT_TARGET bash $TMPFILE
rm $SCHROOT_TARGET/$TMPFILE
fi