travis/build.sh: sort dependencies to build in proper order.
This commit is contained in:
parent
cef388f07b
commit
2fdd875618
|
@ -8,7 +8,9 @@ if [ "$1" != "$2" ]; then
|
||||||
arch="-a $2"
|
arch="-a $2"
|
||||||
fi
|
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"
|
./xbps-src -H $HOME/hostdir $arch -C pkg "$pkg"
|
||||||
[ $? -eq 1 ] && exit 1
|
[ $? -eq 1 ] && exit 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue