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

trunk/src/templatepkg

index d1bffb6e27fb0b7a8ac1dd14b71dbdab04ffc132..487262178897f9f0a44cd965058b0dae981a41fe 100755 (executable)
@@ -471,7 +471,8 @@ function check_template_exist {
   for component in $components; do
 
     if [ ! -e "$TEMPLATE_BASE.$component" ]; then
-      echo "$BASENAME: template component not found: $component; creating..."
+
+      echo "$BASENAME: template component not found: $TEMPLATE_BASE.$component; creating..."
 
       cd `dirname $TEMPLATE_BASE`
 
@@ -486,7 +487,15 @@ function check_template_exist {
         info_commit="yes"
       fi
 
+    elif use_svn && [ -d "$TEMPLATE_BASE/.svn" ] && \
+         ! svn_check $TEMPLATE_BASE.$component; then
+
+      cd `dirname $TEMPLATE_BASE`
+      svn add $TEMPLATE_BASE.$component
+      info_commit="yes"
+
     fi
+
   done
 
   if [ "$info_commit" == "yes" ]; then