[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible maintenance: set apt to ignore Release expiry when we are in the future

Mattia Rizzolo mattia at debian.org
Thu Apr 5 15:02:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository jenkins.debian.net.

commit f3aba2a97e74dd5cc8b51fc5de741e9a156b5cba
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Thu Apr 5 17:01:39 2018 +0200

    reproducible maintenance: set apt to ignore Release expiry when we are in the future
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 bin/reproducible_maintenance.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 1d6cc53..f358ec7 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -116,6 +116,12 @@ for s in $SUITES ; do
 			echo "Error: failed to create the $s/$ARCH chdist."
 			exit 1
 		fi
+		. /srv/jenkins/bin/jenkins_node_definitions.sh
+		get_node_ssh_port "$HOSTNAME"
+		if "$NODE_RUN_IN_THE_FUTURE" ; then
+			echo "This node is reported to run in the future, configuring APT to ignore the Release file expiration..."
+			echo 'Acquire::Check-Valid-Until "false";' > "$CHPATH/$distname/etc/apt/apt.conf.d/398future"
+		fi
 	fi
 	if ! chdist --data-dir="$CHPATH" apt-get "$distname" update ; then
 		echo "Warning: failed to update the $s/$ARCH chdist."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list