diff options
author | Bryan Drewery <bryan@shatow.net> | 2019-12-10 02:59:05 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2019-12-10 02:59:34 +0300 |
commit | cbda9e3fe94feaa54bd4806ac3bb7f0804c3c64a (patch) | |
tree | e31c8dd78429cd727d62bcbc83ba66c10ee21c39 /src/share/poudriere | |
parent | 9da4309eb18da693a6bbcd09e51a9dc784cf68b3 (diff) |
Add -a overlay tests and fix -a duplicates
Diffstat (limited to 'src/share/poudriere')
-rwxr-xr-x | src/share/poudriere/common.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 97c05ef0..7b8b2520 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -6760,11 +6760,13 @@ _listed_ports() { _pget portsdir ${PTNAME} mnt || \ err 1 "Missing mnt metadata for portstree" [ -d "${portsdir}/ports" ] && portsdir="${portsdir}/ports" - _list_ports_dir "${portsdir}" "${PTNAME}" - for o in ${OVERLAYS}; do - _pget portsdir "${o}" mnt - _list_ports_dir "${portsdir}" "${o}" - done + { + _list_ports_dir "${portsdir}" "${PTNAME}" + for o in ${OVERLAYS}; do + _pget portsdir "${o}" mnt + _list_ports_dir "${portsdir}" "${o}" + done + } | sort -ud return 0 fi |