aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-09 15:54:19 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-09 15:54:19 +0000
commit87babaf85a109126a86ef1de539ebd3525d8b28d (patch)
treea24c9c8df23fd7369e69ed59e005aa19348cc825 /trunk/lib/common.sh
parent921803921ee524645a5593424340195b310f16b3 (diff)
downloadsimplepkg-87babaf85a109126a86ef1de539ebd3525d8b28d.tar.gz
simplepkg-87babaf85a109126a86ef1de539ebd3525d8b28d.tar.bz2
simplaret: new var SIMPLARET_DOWNLOAD_FROM_NEXT_REPO
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@326 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 2680cff..f331e56 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -391,7 +391,8 @@ function search_template {
TEMPLATE_BASE="$TEMPLATE_FOLDER/$1"
elif [ -f "$TEMPLATE_FOLDER/$1/$1.template" ]; then
TEMPLATE_BASE="$TEMPLATE_FOLDER/$1/$1"
- elif [ -f "$BASE_CONF/defaults/templates/$1/$1.template" ]; then
+ elif [ -f "$BASE_CONF/defaults/templates/$1/$1.template" ] && \
+ [ "$2" != "--update" ]; then
TEMPLATE_BASE="$BASE_CONF/defaults/templates/$1/$1"
else
if [ "$2" == "--new" ]; then