diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 15:58:08 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 15:58:08 +0000 |
commit | d17c8cd8f3624e4206bdc27bf8a8d39834ff2ffd (patch) | |
tree | ab5d755a86bfbd6844f677624eac54215a96fe0f /trunk | |
parent | 71b612263868dfab888f31086ba85c9bdb73674c (diff) | |
download | simplepkg-d17c8cd8f3624e4206bdc27bf8a8d39834ff2ffd.tar.gz simplepkg-d17c8cd8f3624e4206bdc27bf8a8d39834ff2ffd.tar.bz2 |
some fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@291 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rwxr-xr-x | trunk/src/templatepkg | 11 |
1 files changed, 10 insertions, 1 deletions
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 |