From efba4df20bf350d668ac6982ee3dc9fd84e90a96 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 14 Oct 2015 02:11:20 +0200 Subject: reproducible: only update existing schroots --- bin/reproducible_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_maintenance.sh') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 49c145ad..ae9b85cf 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -53,7 +53,7 @@ for s in $SUITES ; do # echo "$(date -u) - updating the $s/$ARCH schroot now." for i in 1 2 3 4 ; do - schroot --directory /root -u root -c source:jenkins-reproducible-$s -- apt-get update + [ ! -d $SCHROOT_BASE/reproducible-$s ] || schroot --directory /root -u root -c source:jenkins-reproducible-$s -- apt-get update RESULT=$? if [ $RESULT -eq 1 ] ; then # sleep 61-120 secs -- cgit v1.2.3-70-g09d2