Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/poudriere/common.sh')
-rwxr-xr-xsrc/share/poudriere/common.sh10
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