From d17c8cd8f3624e4206bdc27bf8a8d39834ff2ffd Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Apr 2007 15:58:08 +0000 Subject: some fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@291 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'trunk') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index d1bffb6..4872621 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -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 -- cgit v1.2.3