Should /usr/src/tools/tools/sysbuild/sysbuild.sh be using "pkg add" with .txz like it is --or should it be .pkg ?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 15 May 2025 00:48:39 UTC
The sysbuild.sh has the logic:

                if [ "x${PKG_DIR}" != "x" -a -f ${PKG_DIR}/$pn.txz ] ; then
                        if [ "x$use_pkg" = "x-p" ] ; then
                                log_it "Install $t ($pn)"
                                (
                                set +e
                                pkg add ${PKG_DIR}/$pn.txz || true
                                ) > _.$b 2>&1 < /dev/null
                                continue
                        fi
                fi

which is the only "pkg add" in the code. Ignoring
$FreeBSD$ removals, the script was last modified on
2021-06-30 .

(I ran into this while looking for something else via
a fairly general grep. I'm not using the script.)

===
Mark Millard
marklmi at yahoo.com