Make sure to run tmpl_vars for a template.

--HG--
extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548
This commit is contained in:
Juan RP 2009-01-14 16:49:40 +01:00
parent a0174e5135
commit 869b38b9fa
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -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
}
#