From 89c8582509c73c1790d686ee2d08a7383e90d3eb Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 12 Mar 2023 21:00:14 -0400 Subject: [PATCH] common/travis/check-install.sh: also fail on other failure modes 11 = EINVAL, which can come from conflict check and a few other places --- common/travis/check-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/travis/check-install.sh b/common/travis/check-install.sh index b5268085db5..943a6bc6211 100755 --- a/common/travis/check-install.sh +++ b/common/travis/check-install.sh @@ -21,7 +21,8 @@ while read -r pkg; do $ROOTDIR $ADDREPO \ -Sny \ "$subpkg" "$(xbps-uhelper getpkgname "$dep")" - if [ $? -eq 8 ]; then + ret="$?" + if [ "$ret" -eq 8 ] || [ "$ret" -eq 11 ]; then /bin/echo -e "\x1b[31mFailed to install '$subpkg' and '$dep'\x1b[0m" exit 1 fi