diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-07 18:29:19 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-07 18:29:19 +0000 |
commit | 3b194aab45656d429b752bf4f34f781c1fad0463 (patch) | |
tree | 00274bf7f70eaeb374e2993148ea2f4444a2a338 /trunk/src/templatepkg | |
parent | 12dc3ae3feca8ee57bdc4cfbf4c33aecf9bc3a2d (diff) | |
download | simplepkg-3b194aab45656d429b752bf4f34f781c1fad0463.tar.gz simplepkg-3b194aab45656d429b752bf4f34f781c1fad0463.tar.bz2 |
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@305 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-x | trunk/src/templatepkg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index c59087d..5a0150e 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -409,8 +409,9 @@ function template_update { done - if ! svn_check $TEMPLATE_BASE.template && [ -d "$TEMPLATE_BASE.d/.svn" ]; then - svn add $TEMPLATE_BASE.template + if ! svn_check $TEMPLATE_BASE.template && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then + cd `dirname $TEMPLATE_BASE` + svn add `basedir $TEMPLATE_BASE`.template fi } |