Move run_template() to tmpl_funcs.sh.
--HG-- extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8
This commit is contained in:
parent
2c7f9d1330
commit
12d65cc30c
|
@ -25,16 +25,6 @@
|
|||
|
||||
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
|
||||
|
||||
run_template()
|
||||
{
|
||||
local pkg="$1"
|
||||
|
||||
if [ "$pkgname" != "$pkg" ]; then
|
||||
reset_tmpl_vars
|
||||
. $XBPS_TEMPLATESDIR/$pkg/template
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Recursive function that installs all direct and indirect
|
||||
# dependencies of a package.
|
||||
|
|
|
@ -158,3 +158,13 @@ prepare_tmpl()
|
|||
export PATH="$PATH:/usr/local/sbin"
|
||||
fi
|
||||
}
|
||||
|
||||
run_template()
|
||||
{
|
||||
local pkg="$1"
|
||||
|
||||
if [ "$pkgname" != "$pkg" ]; then
|
||||
reset_tmpl_vars
|
||||
. $XBPS_TEMPLATESDIR/$pkg/template
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user