--- src/share/poudriere/common.sh 2018-03-30 13:07:04.000000000 -0700 +++ src/share/poudriere/common.sh 2018-04-22 17:41:01.907654000 -0700 @@ -6578,13 +6578,14 @@ # -f specified if [ -z "${LISTPORTS}" ]; then for file in ${LISTPKGS}; do + { sed -e 's/[[:space:]]*#.*$//' | while read origin; do # Skip blank lines and comments [ -z "${origin%%#*}" ] && continue # Remove excess slashes for mistakes origin="${origin#/}" echo "${origin%/}" - done < "${file}" + done } < "${file}" done else # Ports specified on cmdline