From e77d5f3094664c67a797fa25cfb80e339807ce7e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 25 Feb 2022 00:16:10 +0100 Subject: [PATCH] Log the exit code of run_apt shell function It seems like this function sometimes doesn't return non-zero exit code even though it fails to fetch some packages (e.g. due to a network error), so log its status code to check if this is really the case. --- build/tools/before_install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/tools/before_install.sh b/build/tools/before_install.sh index ace2d24839..6cddd918eb 100755 --- a/build/tools/before_install.sh +++ b/build/tools/before_install.sh @@ -17,11 +17,14 @@ case $(uname -s) in echo '--- End of APT files dump ---' run_apt() { - echo "Running apt-get $@" + echo "-> Running apt-get $@" # Disable some (but not all) output. $SUDO apt-get -q -o=Dpkg::Use-Pty=0 "$@" + echo "-> Done with $?" + + return $? } if [ "$wxUSE_ASAN" = 1 ]; then