common/travis/check-install.sh: also fail on other failure modes

11 = EINVAL, which can come from conflict check and a few other places
This commit is contained in:
classabbyamp 2023-03-12 21:00:14 -04:00 committed by classabbyamp
parent a2fc203a81
commit 89c8582509
1 changed files with 2 additions and 1 deletions

View File

@ -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