From 3c79f11a6f5945305cf68f85302ecd1fa77e7083 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 10 Apr 2014 11:26:02 +0200 Subject: [PATCH] xbps-src/shutils/bulk: also add pkgs with no deps. --- common/xbps-src/shutils/bulk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/xbps-src/shutils/bulk.sh b/common/xbps-src/shutils/bulk.sh index 9d52e0d9d09..f1137b234d3 100644 --- a/common/xbps-src/shutils/bulk.sh +++ b/common/xbps-src/shutils/bulk.sh @@ -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