From ffef18f0bad5784cdecabc3e3ffa31ba9a6b73f8 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Fri, 12 Sep 2008 09:17:39 +0000
Subject: [PATCH] Bug 1170: rub now keeps going after an error when -k option
 is given

---
 autoconf_share/rub | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoconf_share/rub b/autoconf_share/rub
index d3fb75846e4..8ac782978e1 100755
--- a/autoconf_share/rub
+++ b/autoconf_share/rub
@@ -617,7 +617,7 @@ if [ $updas != 0 ]; then
     echo "Checkout of LOFAR/bootstrap"
     (cd .. && $chocomm LOFAR/bootstrap) >> rub.log 2>&1
   fi
-  $pgmpath/rub1 autoconf_share 2 h "" "" "$updas" "$recur" "$usesvn" "$command" || exit 1
+  $pgmpath/rub1 autoconf_share 2 h "" "" "$updas" "$recur" "$usesvn" "$command" || [ "$kopt" = "-k" ] || exit 1
 fi
 \rm -f allpkg.tmp
 touch allpkg.tmp
@@ -627,7 +627,7 @@ for PKG in $PKGS
 do
   pkg=`echo $PKG | sed -e 's%#-v.*%%'`
   vers=`echo $PKG | sed -e 's%.*#-v%%'`
-  $pgmpath/rub1 $pkg 1 "$verstype" "$vers" "$cutag" "$update" "$recur" "$usesvn" "$command" || exit 1
+  $pgmpath/rub1 $pkg 1 "$verstype" "$vers" "$cutag" "$update" "$recur" "$usesvn" "$command" || [ "$kopt" = "-k" ] || exit 1
 done
 
 # Convert allpkg.tmp to lofarconf.in.private
-- 
GitLab