Double check package is installed after 'install'.

If a package is not defined correctly (eg. wrong pkg-config name),
chocpkg might not recognize a package is installed even after we've
gone through the entire build and install step. So print a message if
'chocpkg installed' still evaluates to false after install.
This commit is contained in:
Simon Howard 2017-02-21 22:50:42 -05:00
parent 3e5b47e802
commit d1a4e320d5

View file

@ -125,6 +125,12 @@ chocpkg::commands::hook_reinstall() {
chocpkg build $(chocpkg::commands::full_package_name)
cd "$PACKAGE_BUILD_DIR"
do_install
if ! chocpkg installed $(chocpkg::commands::full_package_name); then
(echo
echo "Package $PACKAGE_NAME install check is false after install."
echo "Double check that the check module is defined correctly."
echo) >&2
fi
}
chocpkg::commands::hook_shell() {