]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes at sync_repo
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 16:47:40 +0000 (16:47 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 16:47:40 +0000 (16:47 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@758 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index d1f16c6bd7ac276e74677f9412811ac65268b897..93ebeb19c03354ac1d15ca64536cf8f5b701f303 100644 (file)
@@ -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
 
 }