mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-30 16:01:10 +00:00
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:
parent
3e5b47e802
commit
d1a4e320d5
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue