From 843697acd6742c87a4a769f35d1809084c24883c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 5 Oct 2011 10:30:15 +0200 Subject: [PATCH] xbps-src: even more fixes for binpkg deps. --- xbps-src/shutils/builddep_funcs.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/xbps-src/shutils/builddep_funcs.sh b/xbps-src/shutils/builddep_funcs.sh index 47df58fac19..d85a799c377 100644 --- a/xbps-src/shutils/builddep_funcs.sh +++ b/xbps-src/shutils/builddep_funcs.sh @@ -268,10 +268,18 @@ install_dependencies_pkg() if [ -n "$XBPS_PREFER_BINPKG_DEPS" -a -z "$bootstrap" ]; then msg_normal "$pkgver: installing dependencies from repositories ...\n" for i in ${notinstalled_deps}; do - if [ -z "$pkglist" ]; then - pkglist="\"${i}\"" + if [ "${notinstalled_deps}" = "${build_depends}" ]; then + if [ -z "$pkglist" ]; then + pkglist="\"${i}\"" + else + pkglist="${pkglist} \"${i}\"" + fi else - pkglist="${pkglist} \"${i}\"" + if [ -z "$pkglist" ]; then + pkglist="${i}" + else + pkglist="${pkglist} ${i}" + fi fi done install_pkglist_from_repos "${pkglist}"