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>2019-12-04 03:09:03 +0300
committerBryan Drewery <bryan@shatow.net>2019-12-04 03:09:03 +0300
commit39c0bf3f72a828122cd385bf8adfb6a809e4d685 (patch)
treeec3884bb675483346036c624bc8f0ac1e64c8875 /src
parent723dffb14fc4109f3876d2bc101f2df9896374b3 (diff)
jail -i: Don't show ports tree info if not requested
Diffstat (limited to 'src')
-rwxr-xr-xsrc/share/poudriere/jail.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/share/poudriere/jail.sh b/src/share/poudriere/jail.sh
index 484e2177..6a8269e7 100755
--- a/src/share/poudriere/jail.sh
+++ b/src/share/poudriere/jail.sh
@@ -972,7 +972,7 @@ info_jail() {
if [ -n "${timestamp}" ]; then
echo "Jail updated: $(date -j -r ${timestamp} "+%Y-%m-%d %H:%M:%S")"
fi
- if porttree_exists ${PTNAME}; then
+ if [ "${PTNAME_ARG:-0}" -eq 1 ] && porttree_exists ${PTNAME}; then
_pget pmethod ${PTNAME} method
echo "Tree name: ${PTNAME}"
echo "Tree method: ${pmethod:--}"
@@ -1081,6 +1081,7 @@ while getopts "biJ:j:v:a:z:m:nf:M:sdkK:lqcip:r:uU:t:z:P:S:DxC:" FLAG; do
;;
p)
PTNAME=${OPTARG}
+ PTNAME_ARG=1
;;
P)
[ -r ${OPTARG} ] || err 1 "No such patch"