xbps-src-doinst-helper: if 'make install' fails print the log file and inform the user.
This commit is contained in:
parent
43ecc9f661
commit
4b71f4195b
1 changed files with 6 additions and 2 deletions
|
@ -200,8 +200,12 @@ make_install()
|
||||||
#
|
#
|
||||||
# Install package via make.
|
# Install package via make.
|
||||||
#
|
#
|
||||||
${make_cmd} ${make_install_target} ${make_install_args} \
|
${make_cmd} ${make_install_target} ${make_install_args}
|
||||||
|| msg_error "Package '$pkgname ($lver)': make install failed!"
|
if [ $? -ne 0 -a -f ${wrksrc}/.xbps_make_install.log ]; then
|
||||||
|
msg_red "Package '$pkgname ($lver)': make install failed! full log below:"
|
||||||
|
cat ${wrksrc}/.xbps_make_install.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -z "$PKG_TMPLNAME" ] && exit 2
|
[ -z "$PKG_TMPLNAME" ] && exit 2
|
||||||
|
|
Loading…
Reference in a new issue