common/travis/check-install: fix error when there are no packages built

This commit is contained in:
classabbyamp 2025-03-06 23:30:13 -05:00
parent 311ae8764c
commit b18c09b839
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -27,7 +27,8 @@ ADDREPO="--repository=hostdir/binpkgs/bootstrap
--repository=hostdir/binpkgs/nonfree"
ROOTDIR="-r /check-install"
xbps-install $ROOTDIR $ADDREPO $CONFDIR -S
# if this fails, there were no packages built for this arch and thus no repodatas
xbps-install $ROOTDIR $ADDREPO $CONFDIR -S || exit 0
while read -r pkg; do
for subpkg in $(xsubpkg $pkg); do