diff options
author | Bryan Drewery <bryan@shatow.net> | 2019-12-10 03:10:20 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2019-12-10 03:10:20 +0300 |
commit | 539c72051afb324176d86977a84c0da8a1a8b1f5 (patch) | |
tree | 0327ea8346bfb99808a665a84ebc10298a3e3294 /src/share | |
parent | cbda9e3fe94feaa54bd4806ac3bb7f0804c3c64a (diff) |
listed_ports: Only sort with OVERLAYS.
This should help improve pipelining again when not using
OVERLAYS.
Diffstat (limited to 'src/share')
-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 |