common/travis/build.sh: only error out if xbps-src exits with 1.

broken/nocross exits with 2, should be treated as success.
This commit is contained in:
Juan RP 2015-04-10 11:38:13 +02:00
parent 54d6cb8eed
commit 41d2237b20

View file

@ -7,6 +7,7 @@ if [ "$1" != x86_64 ]; then
fi
for pkg in $(cat /tmp/templates); do
./xbps-src $arch -C pkg "$pkg" || exit 1
./xbps-src $arch -C pkg "$pkg"
[ $? -eq 1 ] && exit 1
done