Fix a regression in the packages module introduced by recent r251190.
I somehow neglected this module in merging that API change.
This commit is contained in:
parent
06bee445d4
commit
367a23a787
@ -297,13 +297,13 @@ f_package_menu_categories()
|
|||||||
$category_list
|
$category_list
|
||||||
" # End-Quote
|
" # End-Quote
|
||||||
|
|
||||||
local size dialog_menu
|
local height width rows dialog_menu
|
||||||
size=$( eval f_dialog_menu_with_help_size \
|
eval f_dialog_menu_with_help_size height width rows \
|
||||||
\"\$DIALOG_TITLE\" \
|
\"\$DIALOG_TITLE\" \
|
||||||
\"\$DIALOG_BACKTITLE\" \
|
\"\$DIALOG_BACKTITLE\" \
|
||||||
\"\$prompt\" \
|
\"\$prompt\" \
|
||||||
\"\$hline\" \
|
\"\$hline\" \
|
||||||
$menu_list )
|
$menu_list
|
||||||
dialog_menu=$( eval $DIALOG \
|
dialog_menu=$( eval $DIALOG \
|
||||||
--title \"\$DIALOG_TITLE\" \
|
--title \"\$DIALOG_TITLE\" \
|
||||||
--backtitle \"\$DIALOG_BACKTITLE\" \
|
--backtitle \"\$DIALOG_BACKTITLE\" \
|
||||||
@ -312,7 +312,8 @@ f_package_menu_categories()
|
|||||||
--default-item \"\$defaultitem\" \
|
--default-item \"\$defaultitem\" \
|
||||||
--ok-label \"$msg_select\" \
|
--ok-label \"$msg_select\" \
|
||||||
--cancel-label \"$msg_cancel\" \
|
--cancel-label \"$msg_cancel\" \
|
||||||
--menu \"\$prompt\" $size \
|
--menu \"\$prompt\" \
|
||||||
|
$height $width $rows \
|
||||||
$menu_list \
|
$menu_list \
|
||||||
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
||||||
)
|
)
|
||||||
@ -455,17 +456,15 @@ f_package_menu_select()
|
|||||||
"$page" "$npages" )"
|
"$page" "$npages" )"
|
||||||
|
|
||||||
local hline="$hline_arrows_tab_punc_enter"
|
local hline="$hline_arrows_tab_punc_enter"
|
||||||
local size isize dialog_menu item
|
local mheight mwidth mrows
|
||||||
size=$( eval f_dialog_menu${SHOW_DESC:+_with_help}_size \
|
f_dialog_menu${SHOW_DESC:+_with_help}_size mheight mwidth mrows \
|
||||||
\"\$DIALOG_TITLE\" \
|
\"\$DIALOG_TITLE\" \"\$DIALOG_BACKTITLE\" \
|
||||||
\"\$DIALOG_BACKTITLE\" \
|
\"\$prompt\" \"\$hline\" $menu_list
|
||||||
\"\$prompt\" \
|
local iheight iwidth
|
||||||
\"\$hline\" \
|
f_dialog_infobox_size iheight iwidth \
|
||||||
$menu_list )
|
"$DIALOG_TITLE" "$DIALOG_BACKTITLE" \
|
||||||
isize=$( f_dialog_infobox_size \
|
"$msg_processing_selection"
|
||||||
"$DIALOG_TITLE" \
|
local dialog_menu item
|
||||||
"$DIALOG_BACKTITLE" \
|
|
||||||
"$msg_processing_selection" )
|
|
||||||
dialog_menu=$( eval $DIALOG \
|
dialog_menu=$( eval $DIALOG \
|
||||||
--title \"\$DIALOG_TITLE\" \
|
--title \"\$DIALOG_TITLE\" \
|
||||||
--backtitle \"\$DIALOG_BACKTITLE\" \
|
--backtitle \"\$DIALOG_BACKTITLE\" \
|
||||||
@ -475,11 +474,13 @@ f_package_menu_select()
|
|||||||
--cancel-label \"$msg_back\" \
|
--cancel-label \"$msg_back\" \
|
||||||
${SHOW_DESC:+--item-help} \
|
${SHOW_DESC:+--item-help} \
|
||||||
--default-item \"\$defaultitem\" \
|
--default-item \"\$defaultitem\" \
|
||||||
--menu \"\$prompt\" $size \
|
--menu \"\$prompt\" \
|
||||||
|
$mheight $mwidth $mrows \
|
||||||
$menu_list \
|
$menu_list \
|
||||||
--and-widget \
|
--and-widget \
|
||||||
${USE_XDIALOG:+--no-buttons} \
|
${USE_XDIALOG:+--no-buttons} \
|
||||||
--infobox \"\$msg_processing_selection\" $isize \
|
--infobox \"\$msg_processing_selection\" \
|
||||||
|
$iheight $iwidth \
|
||||||
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
||||||
)
|
)
|
||||||
local retval=$?
|
local retval=$?
|
||||||
@ -504,7 +505,7 @@ f_package_menu_select()
|
|||||||
#
|
#
|
||||||
f_package_menu_deselect()
|
f_package_menu_deselect()
|
||||||
{
|
{
|
||||||
local package="$1" prompt menu_list size dialog_menu
|
local package="$1" prompt menu_list dialog_menu
|
||||||
prompt=$( printf "$msg_what_would_you_like_to_do_with" "$package" )
|
prompt=$( printf "$msg_what_would_you_like_to_do_with" "$package" )
|
||||||
local hline="$hline_alnum_arrows_punc_tab_enter"
|
local hline="$hline_alnum_arrows_punc_tab_enter"
|
||||||
menu_list="
|
menu_list="
|
||||||
@ -512,19 +513,23 @@ f_package_menu_deselect()
|
|||||||
'R $msg_reinstall' '$msg_reinstall_desc'
|
'R $msg_reinstall' '$msg_reinstall_desc'
|
||||||
'U $msg_uninstall' '$msg_uninstall_desc'
|
'U $msg_uninstall' '$msg_uninstall_desc'
|
||||||
" # End-Quote
|
" # End-Quote
|
||||||
size=$( eval f_dialog_menu_size \
|
|
||||||
\"\$DIALOG_TITLE\" \
|
local height width rows
|
||||||
\"\$DIALOG_BACKTITLE\" \
|
eval f_dialog_menu_size height width rows \
|
||||||
\"\$prompt\" \
|
\"\$DIALOG_TITLE\" \
|
||||||
\"\$hline\" \
|
\"\$DIALOG_BACKTITLE\" \
|
||||||
$menu_list )
|
\"\$prompt\" \
|
||||||
|
\"\$hline\" \
|
||||||
|
$menu_list
|
||||||
|
|
||||||
dialog_menu=$( eval $DIALOG \
|
dialog_menu=$( eval $DIALOG \
|
||||||
--title \"\$DIALOG_TITLE\" \
|
--title \"\$DIALOG_TITLE\" \
|
||||||
--backtitle \"\$DIALOG_BACKTITLE\" \
|
--backtitle \"\$DIALOG_BACKTITLE\" \
|
||||||
--hline \"\$hline\" \
|
--hline \"\$hline\" \
|
||||||
--ok-label \"$msg_select\" \
|
--ok-label \"$msg_select\" \
|
||||||
--cancel-label \"$msg_cancel\" \
|
--cancel-label \"$msg_cancel\" \
|
||||||
--menu \"\$prompt\" $size \
|
--menu \"\$prompt\" \
|
||||||
|
$height $width $rows \
|
||||||
$menu_list \
|
$menu_list \
|
||||||
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
||||||
)
|
)
|
||||||
@ -542,7 +547,7 @@ f_package_menu_deselect()
|
|||||||
#
|
#
|
||||||
f_package_review()
|
f_package_review()
|
||||||
{
|
{
|
||||||
local prompt size dialog_menu package varpkg mark menu_list=
|
local prompt dialog_menu package varpkg mark menu_list=
|
||||||
prompt=$( printf "$msg_reviewing_selected_packages" \
|
prompt=$( printf "$msg_reviewing_selected_packages" \
|
||||||
"$_All_nselected" )
|
"$_All_nselected" )
|
||||||
local hline="$hline_alnum_arrows_punc_tab_enter"
|
local hline="$hline_alnum_arrows_punc_tab_enter"
|
||||||
@ -562,19 +567,23 @@ f_package_review()
|
|||||||
return $FAILURE # They might have selected this by accident
|
return $FAILURE # They might have selected this by accident
|
||||||
fi
|
fi
|
||||||
menu_list=$( echo "$menu_list" | sort )
|
menu_list=$( echo "$menu_list" | sort )
|
||||||
size=$( eval f_dialog_menu_size \
|
|
||||||
\"\$DIALOG_TITLE\" \
|
local height width rows
|
||||||
\"\$DIALOG_BACKTITLE\" \
|
eval f_dialog_menu_size height width rows \
|
||||||
\"\$prompt\" \
|
\"\$DIALOG_TITLE\" \
|
||||||
\"\$hline\" \
|
\"\$DIALOG_BACKTITLE\" \
|
||||||
$menu_list )
|
\"\$prompt\" \
|
||||||
|
\"\$hline\" \
|
||||||
|
$menu_list
|
||||||
|
|
||||||
dialog_menu=$( eval $DIALOG \
|
dialog_menu=$( eval $DIALOG \
|
||||||
--title \"\$DIALOG_TITLE\" \
|
--title \"\$DIALOG_TITLE\" \
|
||||||
--backtitle \"\$DIALOG_BACKTITLE\" \
|
--backtitle \"\$DIALOG_BACKTITLE\" \
|
||||||
--hline \"\$hline\" \
|
--hline \"\$hline\" \
|
||||||
--ok-label \"\$msg_proceed\" \
|
--ok-label \"\$msg_proceed\" \
|
||||||
--cancel-label \"\$msg_cancel\" \
|
--cancel-label \"\$msg_cancel\" \
|
||||||
--menu \"\$prompt\" $size \
|
--menu \"\$prompt\" \
|
||||||
|
$height $width $rows \
|
||||||
$menu_list \
|
$menu_list \
|
||||||
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user