From 143a51b5d5689eb73cfb2a9080673646e04b9ee3 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 27 Nov 2008 23:31:24 +0000 Subject: fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@563 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 9 +++++---- trunk/src/createpkg | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'trunk') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 93f1e0a..4b54cc6 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -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 + [ $# -ne 1 ] && handle_error $ERROR_PAR_NUMBER DIR_LIST=`echo $1 | tr '/' ' '` diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 1ab48a6..49b3cfb 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -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 -- cgit v1.2.3