Skip to content

Commit

Permalink
Item8310: timeout svn in autobuilder in case it is spinning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@5369 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
DrakeDiedrich authored and DrakeDiedrich committed Oct 23, 2009
1 parent df254e9 commit 1c63c28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/tools/pkg/autohost-deb.sh
Expand Up @@ -21,12 +21,13 @@ fi

REPOSITORYHOST=debmarshal.debian.net
INCOMING=/var/lib/debmarshal/foswiki/incoming
TIMEOUT="timeout 600"

cd ${HOME}

if [ ! -d $BRANCH ] ; then
if [ "x$BRANCH" = "xtrunk" ] ; then
svn co http://svn.foswiki.org/trunk
svn co http://svn.foswiki.org/trunk
else
svn co http://svn.foswiki.org/branches/$BRANCH
fi
Expand All @@ -36,9 +37,9 @@ fi
# Check whether there have been changes in the release or trunk
#
cd $BRANCH
lastrelease=`svn info | awk '/Last Changed Rev:/ { print $4; }'`
svn up >/dev/null
release=`svn info | awk '/Last Changed Rev:/ { print $4; }'`
lastrelease=`$TIMEOUT svn info | awk '/Last Changed Rev:/ { print $4; }'`
$TIMEOUT svn up >/dev/null
release=`$TIMEOUT svn info | awk '/Last Changed Rev:/ { print $4; }'`
cd ..

if [ "$lastrelease" = "$release" ]
Expand Down

0 comments on commit 1c63c28

Please sign in to comment.