From 35df7893c19e451de920ac3274aad812b00064ff Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Mon, 6 Jun 2016 13:28:49 -0400 Subject: reproducible debian: ignore hostname spectrum for test setup --- bin/common-functions.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/bin/common-functions.sh b/bin/common-functions.sh index ad4a613e..4bc4f477 100755 --- a/bin/common-functions.sh +++ b/bin/common-functions.sh @@ -53,18 +53,29 @@ else if [ -z "$LC_ALL" ]; then export LC_ALL=C.UTF-8 fi + if [ -z "$MIRROR" ]; then case $HOSTNAME in - jenkins|jenkins-test-vm|profitbricks-build*) export MIRROR=http://ftp.de.debian.org/debian ;; - bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) export MIRROR=http://ftp.us.debian.org/debian ;; - *) echo "unsupported host, exiting." ; exit 1 ;; + jenkins|jenkins-test-vm|profitbricks-build*) + export MIRROR=http://ftp.de.debian.org/debian ;; + bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) + export MIRROR=http://ftp.us.debian.org/debian ;; + spectrum) + export MIRROR=none ;; + *) + echo "unsupported host, exiting." ; exit 1 ;; esac fi if [ -z "$http_proxy" ]; then case $HOSTNAME in - jenkins|jenkins-test-vm|profitbricks-build*) export http_proxy="http://localhost:3128" ;; - bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) export http_proxy="http://10.0.0.15:8000/" ;; - *) echo "unsupported host, exiting." ; exit 1 ;; + jenkins|jenkins-test-vm|profitbricks-build*) + export http_proxy="http://localhost:3128" ;; + bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) + export http_proxy="http://10.0.0.15:8000/" ;; + spectrum) + export MIRROR=none ;; + *) + echo "unsupported host, exiting." ; exit 1 ;; esac fi if [ -z "$CHROOT_BASE" ]; then -- cgit v1.2.3-54-g00ecf