[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: refactor

Holger Levsen holger at moszumanska.debian.org
Fri Oct 16 14:04:58 UTC 2015


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

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

commit 4de8761e4b65a04e777f87ea62557d7cfd7b6226
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Oct 16 16:00:49 2015 +0200

    reproducible: refactor
---
 TODO                                   | 1 +
 bin/reproducible_arch_schroot_setup.sh | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO
index 8039153..8a27e01 100644
--- a/TODO
+++ b/TODO
@@ -307,6 +307,7 @@ properties:
 *** idea: reschedule reverse build depends too
 * more random notes:
 ** use -source schroot
+** BOOTSTRAP_TAR_GZ=2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz needs to be replaced with a future proof filename
 ** download bootstrap.tar.gz sig and verify
 ** build with -j X
 ** 'echo "keyserver-options auto-key-retrieve" >> ~/.gnupg/gpg.conf'
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index a6285e3..50ce3a8 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -12,9 +12,13 @@ DEBUG=true
 . /srv/jenkins/bin/common-functions.sh
 common_init "$@"
 
+# define URL for bootstrap.tgz
+BOOTSTRAP_BASE=https://mirrors.kernel.org/archlinux/iso/
+BOOTSTRAP_TAR_GZ=2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+
 bootstrap() {
 	echo "$(date -u) - downloading Archlinux bootstrap.tar.gz."
-	curl -O https://mirrors.kernel.org/archlinux/iso/2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+	curl -O $BOOTSTRAP_BASE/$BOOTSTRAP_TAR_GZ
 	tar xzf archlinux-bootstrap-2015.08.01-x86_64.tar.gz
 	mv root.x86_64/* $SCHROOT_TARGET || true # proc and sys have 0555 perms, thus mv will fail... also see below
 	rm archlinux-bootstrap-2015.08.01-x86_64.tar.gz root.x86_64 -rf

-- 
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