From 4be7c53dc96f126e433695f296ac694161eb3301 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 2 Jun 2009 17:13:23 +0000 Subject: stopped double-builds by testing for a chroot dir before trying to build from them svn path=/trunk/; revision=11615 --- scripts/auto-build/run-automated-builder | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts/auto-build/run-automated-builder') diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index 8d10196f..e6499bf7 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -72,11 +72,13 @@ for distrodir in ${HOME}/auto-build/*; do distro=$(echo $distrodir | sed 's|.*/\(.*\)|\1|') if [ -e $distrodir/scripts/auto-build/${distro}-auto-builder.sh ]; then run_build_script $distro IGNORE_CHROOT_USE_SYSTEM - for chrootdir in /var/chroot/*; do - chroot=$(echo $chrootdir | sed 's|.*/\(.*\)|\1|') - HOSTNAME=`cat /etc/hostname` - run_build_script $distro $chroot - done + if [ -e /var/chroot ]; then + for chrootdir in /var/chroot/*; do + chroot=$(echo $chrootdir | sed 's|.*/\(.*\)|\1|') + HOSTNAME=`cat /etc/hostname` + run_build_script $distro $chroot + done + fi fi done -- cgit v1.2.1