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
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-09-09 03:45:41 +0300
committerBryan Drewery <bryan@shatow.net>2021-09-09 03:53:04 +0300
commit5d0854647e4b9b123a8864635bb68cf90d3e1040 (patch)
tree43e276e1b5bf4df716f6682da9177cf12a5385d0 /src
parent69f7575ea7b2729016b2f8de9168661d28600b11 (diff)
_listed_ports: Cleanup some style.
No functional change intended.
Diffstat (limited to 'src')
-rw-r--r--src/share/poudriere/common.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh
index 6f64e45a..f3de800f 100644
--- a/src/share/poudriere/common.sh
+++ b/src/share/poudriere/common.sh
@@ -7252,16 +7252,16 @@ _list_ports_dir() {
_listed_ports() {
local tell_moved="${1}"
- local portsdir origin file o
+ local portsdir origin file o mnt
if [ ${ALL} -eq 1 ]; then
- _pget portsdir ${PTNAME} mnt || \
+ _pget portsdir ${PTNAME:?} mnt || \
err 1 "Missing mnt metadata for portstree"
if [ -d "${portsdir}/ports" ]; then
portsdir="${portsdir}/ports"
fi
{
- _list_ports_dir "${portsdir}" "${PTNAME}"
+ _list_ports_dir "${portsdir}" "${PTNAME:?}"
for o in ${OVERLAYS}; do
_pget portsdir "${o}" mnt
_list_ports_dir "${portsdir}" "${o}"
@@ -7280,7 +7280,7 @@ _listed_ports() {
{
# -f specified
- if [ -z "${LISTPORTS}" ]; then
+ if [ -n "${LISTPKGS-}" ]; then
local _ignore_comments
for file in ${LISTPKGS}; do
@@ -7295,7 +7295,7 @@ _listed_ports() {
echo "${origin%/}"
done
done
- else
+ elif [ -n "${LISTPORTS-}" ]; then
# Ports specified on cmdline
for origin in ${LISTPORTS}; do
# Remove excess slashes for mistakes