#
do_list()
{
- local command exitcode count
+ local portupgrade_extra_arg command exitcode count
make_tempfile
- command="${root_command_prefix}portversion -vl <"
+ pkg_info -E 'portupgrade>=2.4.6,2' > /dev/null
+
+ exitcode=$?
+
+ if ! cmd_failed $exitcode
+ then
+ portupgrade_extra_arg=F
+ fi
+
+
+ command="${root_command_prefix}portversion -${portupgrade_extra_arg}vl <"
+
showcmd "$command"
$command > "$temp_file"
clear
- "$PAGER_PROGRAM" "$temp_file"
+ $PAGER_PROGRAM "$temp_file"
del_tempfile
for binary in portupgrade portinstall portversion \
dialog csup portsdb pkgdb portaudit pkg_deinstall \
- "$PAGER_PROGRAM" sed grep cat touch id uname cut \
- portsnap awk wc whereis
+ sed grep cat touch id uname cut portsnap awk wc whereis
do
which "$binary" > /dev/null