From cde348ccfd25b4af23ee44b6fd808355d52f7ded Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 5 Apr 2007 21:10:42 +0000 Subject: templatepkg: small fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@262 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'trunk') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index 3d2287b..aaa3eff 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -195,11 +195,15 @@ function template_create { if ! svn_check $TEMPLATE_BASE.d; then svn mkdir $TEMPLATE_BASE.d info_commit="yes" + else + mkdir $TEMPLATE_BASE.d fi if ! svn_check $TEMPLATE_BASE.s; then - svn mkdir $TEMPLATE.s + svn mkdir $TEMPLATE_BASE.s info_commit="yes" + else + mkdir $TEMPLATE_BASE.d fi if ! svn_check $TEMPLATE_BASE.template; then @@ -274,11 +278,11 @@ function template_update { if [ -f $TEMPLATE ]; then if ! `grep -v -e "^#" $TEMPLATE | cut -d : -f 1 | awk '{ print $1 }' | grep -q -e "^$pack\$"`; then echo $pack >> $TEMPLATE - echo Added $pack on $TEMPLATE + echo Added $pack # on $TEMPLATE fi else echo $pack >> $TEMPLATE - echo Added $pack on $TEMPLATE + echo Added $pack # on $TEMPLATE fi done -- cgit v1.2.3