Move run_template() to tmpl_funcs.sh.
--HG-- extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user