xbps-src/shutils/bulk: also add pkgs with no deps.

This commit is contained in:
Juan RP 2014-04-10 11:26:02 +02:00
parent b7024c78c1
commit 3c79f11a6f

View file

@ -38,15 +38,18 @@ bulk_build() {
for pkg in ${pkgs}; do
. ${XBPS_SRCPKGDIR}/${pkg}/template
_pkgs="$(show_pkg_build_deps | sed -e 's|[<>].*\$||g')"
found=0
for x in ${_pkgs}; do
_pkg=$(bulk_getlink $x)
for f in ${pkgs}; do
if [ "${f}" != "${_pkg}" ]; then
continue
fi
found=1
echo "${pkg} ${f}" >> $tmpf
done
done
[ $found -eq 0 ] && echo "${pkg} ${pkg}" >> $tmpf
done
tsort $tmpf|tac
rm -f $tmpf