travis/build.sh: sort dependencies to build in proper order.

This commit is contained in:
Juan RP 2015-08-16 10:53:30 +02:00
parent cef388f07b
commit 2fdd875618
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ if [ "$1" != "$2" ]; then
arch="-a $2"
fi
for pkg in $(cat /tmp/templates); do
PKGS=$(./xbps-src sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
./xbps-src -H $HOME/hostdir $arch -C pkg "$pkg"
[ $? -eq 1 ] && exit 1
done