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:
authorBryan Drewery <bryan@shatow.net>2019-12-10 03:10:20 +0300
committerBryan Drewery <bryan@shatow.net>2019-12-10 03:10:20 +0300
commit539c72051afb324176d86977a84c0da8a1a8b1f5 (patch)
tree0327ea8346bfb99808a665a84ebc10298a3e3294
parentcbda9e3fe94feaa54bd4806ac3bb7f0804c3c64a (diff)
listed_ports: Only sort with OVERLAYS.
This should help improve pipelining again when not using OVERLAYS.
-rwxr-xr-xsrc/share/poudriere/common.sh10
-rw-r--r--test/bulk-flavor-ignore-all.sh2
2 files changed, 10 insertions, 2 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
diff --git a/test/bulk-flavor-ignore-all.sh b/test/bulk-flavor-ignore-all.sh
index ec40e051..f12d7a4a 100644
--- a/test/bulk-flavor-ignore-all.sh
+++ b/test/bulk-flavor-ignore-all.sh
@@ -14,7 +14,7 @@ assert "ports-mgmt/poudriere-devel-IGNORED ports-mgmt/poudriere-devel-IGNORED-an
"${IGNOREDPORTS-null}" "IGNOREDPORTS should match"
# Assert that skipped ports are right
-assert "ports-mgmt/poudriere-devel-dep2-IGNORED ports-mgmt/poudriere-devel-dep-IGNORED" "${SKIPPEDPORTS-null}" "SKIPPEDPORTS should match"
+assert "ports-mgmt/poudriere-devel-dep-IGNORED ports-mgmt/poudriere-devel-dep2-IGNORED" "${SKIPPEDPORTS-null}" "SKIPPEDPORTS should match"
# Assert the IGNOREd ports are tracked in .poudriere.ports.ignored
assert_ignored "${IGNOREDPORTS}"