From 869b38b9fa8ae83ce6a18e4a18ac7655e2e8b361 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 14 Jan 2009 16:49:40 +0100 Subject: [PATCH] Make sure to run tmpl_vars for a template. --HG-- extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548 --- shutils/pkgtarget_funcs.sh | 2 +- shutils/tmpl_funcs.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shutils/pkgtarget_funcs.sh b/shutils/pkgtarget_funcs.sh index ece6df4117c..32aee2adaff 100644 --- a/shutils/pkgtarget_funcs.sh +++ b/shutils/pkgtarget_funcs.sh @@ -67,7 +67,7 @@ install_pkg() # # We are going to install a new package. # - prepare_tmpl + setup_tmpl $curpkgn # # Install dependencies required by this package. diff --git a/shutils/tmpl_funcs.sh b/shutils/tmpl_funcs.sh index 99896460b63..ea6a4e53b08 100644 --- a/shutils/tmpl_funcs.sh +++ b/shutils/tmpl_funcs.sh @@ -91,15 +91,17 @@ setup_tmpl() [ -z "$pkg" ] && msg_error "missing package name after target." + . $XBPS_SHUTILSDIR/tmpl_vars.sh + if [ -f "$XBPS_TEMPLATESDIR/$pkg.tmpl" ]; then if [ "$pkgname" != "$pkg" ]; then - . $XBPS_SHUTILSDIR/tmpl_vars.sh . $XBPS_TEMPLATESDIR/$pkg.tmpl fi prepare_tmpl else msg_error "cannot find '$pkg' template build file." fi + } #