diff --git a/shutils/builddep_funcs.sh b/shutils/builddep_funcs.sh index 982a0e76542..283f4486c0c 100644 --- a/shutils/builddep_funcs.sh +++ b/shutils/builddep_funcs.sh @@ -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. diff --git a/shutils/tmpl_funcs.sh b/shutils/tmpl_funcs.sh index 2ec8de7343c..9b919e27b55 100644 --- a/shutils/tmpl_funcs.sh +++ b/shutils/tmpl_funcs.sh @@ -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 +}