From 22e3afc021e82ad3d6912ccd3790b96770405ce1 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 28 Aug 2010 18:35:36 -0500 Subject: [PATCH] script/lib/chroot: tweak port_all_bdeps logic to be more thorough --- script/lib/chroot.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/script/lib/chroot.sh b/script/lib/chroot.sh index ad7f521..a00a2b7 100644 --- a/script/lib/chroot.sh +++ b/script/lib/chroot.sh @@ -133,13 +133,22 @@ then shift done } - port_all_bdeps() { + port_all_bdeps() { # Test this one further; I'm not confident in the logic # rdeps for rdeps are rdeps, rdeps for bdeps are bdeps; thus: - ( port_bdeps "${@}"; port_all_rdeps "${@}" ) | while read port - do - port_all_bdeps "${port}" - port_all_rdeps "${port}" - done | sort | uniq + ( + # Handle bdeps, bdeps of bdeps, and rdeps of bdeps + port_bdeps "${@}" | while read port + do + echo "${port}" + port_all_bdeps "${port}" + port_all_rdeps "${port}" + done + # Handle bdeps of rdeps + port_all_rdeps "${@}" | while read port + do + port_all_bdeps "${port}" + done + ) | sort | uniq } pkg_bdeps() { port2pkg $(port_all_bdeps "${@}") -- 2.42.0