]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 27 Nov 2008 23:31:24 +0000 (23:31 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 27 Nov 2008 23:31:24 +0000 (23:31 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@563 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh
trunk/src/createpkg

index 93f1e0a4dbe5c34e1c3b70c3870608d7087e86ae..4b54cc69ee65b3d5a6348fc9976847a8bc76065e 100644 (file)
@@ -566,16 +566,15 @@ function sync_repo {
   #        $2 - svn address
   [ $# -ne 2 ] && exit 5
   cd $1
-  svn update || build_repo $1 $2
+  su_svn update || build_repo $1 $2
 
 }
 
 function svn_add {
 
+  # TODO: merge with svn_add function from mkbuild
   if [ -d "`dirname $1`/.svn" ] && ! svn_check $1; then
-    cwd="`pwd`"
-    cd `dirname $1` && svn add $1
-    cd $cwd
+    su_svn add $1
   fi
 
 }
@@ -583,6 +582,8 @@ function svn_add {
 function svn_mkdir {
 
   # svn make directory
+  # usage: svn_mkdir <folder>
+
   [ $# -ne 1 ] && handle_error $ERROR_PAR_NUMBER
 
   DIR_LIST=`echo $1 | tr '/' ' '`
index 1ab48a6e47fd45ea028e4108771c6fbf333d6eb6..49b3cfb15189b8ed900e50db460de1cd24854a91 100644 (file)
@@ -291,7 +291,7 @@ function repository_status {
     cd $cwd
   fi
 
-  mk_exit 0
+  exit 0
 
 }
 
@@ -309,7 +309,7 @@ function commit_changes {
     cd $cwd
   fi
 
-  mk_exit 0
+  exit 0
 
 }
 
@@ -326,7 +326,7 @@ if [ -f "$COMMON" ]; then
   source $COMMON
 else
   echo "error: file $COMMON found, check your $BASENAME installation"
-  mk_exit 0
+  exit 0
 fi
 
 set_constants