From: rhatto Date: Mon, 19 Jan 2009 16:47:40 +0000 (+0000) Subject: fixes at sync_repo X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d398afea4d20e4a230a0712736484138254eeb24;p=simplepkg.git fixes at sync_repo git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@758 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index d1f16c6..93ebeb1 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -659,7 +659,11 @@ function sync_repo { mkdir -p $folder cd $folder - su_svn update || build_repo $folder $url + if [ -d ".svn" ]; then + su_svn update + else + build_repo $folder $url + fi cd $pwd }