Make sure to run tmpl_vars for a template.
--HG-- extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548
This commit is contained in:
parent
a0174e5135
commit
869b38b9fa
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue