Set up build environment before install step.

This call sets various environment variables (including PATH) before
install; it's important this happens here as well as for build, because
the install step may require tools installed in the install.native
directory.
This commit is contained in:
Simon Howard 2018-09-30 21:36:27 -04:00
parent bd39ce52f6
commit f8ff071967

View file

@ -122,6 +122,7 @@ chocpkg::commands::hook_installed() {
chocpkg::commands::hook_reinstall() { chocpkg::commands::hook_reinstall() {
chocpkg build $(chocpkg::commands::full_package_name) chocpkg build $(chocpkg::commands::full_package_name)
chocpkg::environment::setup_build_environment
cd "$PACKAGE_BUILD_DIR" cd "$PACKAGE_BUILD_DIR"
do_install do_install
if ! chocpkg installed $(chocpkg::commands::full_package_name); then if ! chocpkg installed $(chocpkg::commands::full_package_name); then