]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix on su_svn
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 1 Dec 2008 16:58:03 +0000 (16:58 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 1 Dec 2008 16:58:03 +0000 (16:58 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@618 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh
trunk/src/mkbuild

index f1635e42cb5287570e2b9184890bc70577e1d087..b242d29df95b3f63b836dc5edda9e7dfacc0c1fe 100644 (file)
@@ -659,7 +659,11 @@ function su_svn {
 
   # execute svn using a different user
   if [ ! -z "$SVN_USER" ]; then
-    su $SVN_USER -c "svn $*"
+    if [ "`whoami`" != "$SVN_USER" ]; then
+      su $SVN_USER -c "svn $*"
+    else
+      svn $*
+    fi
   else
     svn $*
   fi
index 4778869e2284ffd7ba3ea1181170e02e8e4a7422..c3a6fa285939deacb68a422f235c0acb4066f953 100755 (executable)
@@ -567,7 +567,7 @@ function submit_slackbuild {
   #  echo "Only root can submit SlackBuilds..."
   #  return 1
   #fi
-  echo -e "\nCommit $SLACKBUILD"
+  echo -e "\nSubmiting $SLACKBUILD"
 
   # check SlackBuilds directory
   [ ! -e $SLACKBUILDS_DIR ] && createpkg --sync
@@ -600,7 +600,7 @@ function submit_mkbuild {
   #  echo "Only root can submit mkbuild..."
   #  return 1
   #fi
-  echo -e "\nCommit $MKBUILD_NAME"
+  echo -e "\nSubmiting $MKBUILD_NAME"
 
   # check mkbuild directory
   [ ! -d $MKBUILDS_DIR ] && build_repo $MKBUILDS_DIR $MKBUILDS_SVN