]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
some more fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 16:02:44 +0000 (16:02 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 16:02:44 +0000 (16:02 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@292 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 487262178897f9f0a44cd965058b0dae981a41fe..69b4510b1935941fd28437b0f9d86d52c2f15c60 100755 (executable)
@@ -200,7 +200,7 @@ function template_create {
   touch $TEMPLATE_BASE.perms
   touch $TEMPLATE_BASE.template
 
-  if use_svn && [ -d "$TEMPLATE_BASE/.svn" ]; then
+  if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then
 
     cd `dirname $TEMPLATE_BASE`
 
@@ -482,12 +482,12 @@ function check_template_exist {
         mkdir $TEMPLATE_BASE.$component
       fi
 
-      if use_svn && [ -d "$TEMPLATE_BASE/.svn" ]; then
+      if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then
         svn add $TEMPLATE_BASE.$component
         info_commit="yes"
       fi
 
-    elif use_svn && [ -d "$TEMPLATE_BASE/.svn" ] && \
+    elif use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ] && \
          ! svn_check $TEMPLATE_BASE.$component; then
 
       cd `dirname $TEMPLATE_BASE`