diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/share/poudriere/common.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 7b8b2520..778efec3 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -6766,7 +6766,15 @@ _listed_ports() { _pget portsdir "${o}" mnt _list_ports_dir "${portsdir}" "${o}" done - } | sort -ud + } | { + # Sort but only if there's OVERLAYS to avoid + # needless slowdown for pipelining otherwise. + if [ -n "${OVERLAYS}" ]; then + sort -ud + else + cat -u + fi + } return 0 fi |