build-submodules: report back package error when build with --verbose

This commit is contained in:
Christian Poessinger 2019-01-27 13:06:16 +01:00
parent b10711d42e
commit 9210522425

View File

@ -104,6 +104,9 @@ build_package() {
) >>$PKGDIR/$PKG.buildlog 2>&1 ) >>$PKGDIR/$PKG.buildlog 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
status_fail status_fail
if [ $VERBOSE -eq 1 ]; then
cat $PKGDIR/$PKG.buildlog
fi
error_msg "Failed to build package $PKG, look in $PKG.buildlog to examine the fault\n" error_msg "Failed to build package $PKG, look in $PKG.buildlog to examine the fault\n"
return 2 return 2
fi fi