Make sure to run tmpl_vars for a template.
--HG-- extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548
This commit is contained in:
parent
a0174e5135
commit
869b38b9fa
2 changed files with 4 additions and 2 deletions
|
@ -67,7 +67,7 @@ install_pkg()
|
||||||
#
|
#
|
||||||
# We are going to install a new package.
|
# We are going to install a new package.
|
||||||
#
|
#
|
||||||
prepare_tmpl
|
setup_tmpl $curpkgn
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install dependencies required by this package.
|
# Install dependencies required by this package.
|
||||||
|
|
|
@ -91,15 +91,17 @@ setup_tmpl()
|
||||||
|
|
||||||
[ -z "$pkg" ] && msg_error "missing package name after target."
|
[ -z "$pkg" ] && msg_error "missing package name after target."
|
||||||
|
|
||||||
|
. $XBPS_SHUTILSDIR/tmpl_vars.sh
|
||||||
|
|
||||||
if [ -f "$XBPS_TEMPLATESDIR/$pkg.tmpl" ]; then
|
if [ -f "$XBPS_TEMPLATESDIR/$pkg.tmpl" ]; then
|
||||||
if [ "$pkgname" != "$pkg" ]; then
|
if [ "$pkgname" != "$pkg" ]; then
|
||||||
. $XBPS_SHUTILSDIR/tmpl_vars.sh
|
|
||||||
. $XBPS_TEMPLATESDIR/$pkg.tmpl
|
. $XBPS_TEMPLATESDIR/$pkg.tmpl
|
||||||
fi
|
fi
|
||||||
prepare_tmpl
|
prepare_tmpl
|
||||||
else
|
else
|
||||||
msg_error "cannot find '$pkg' template build file."
|
msg_error "cannot find '$pkg' template build file."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue