Package list debian-goodies / f34a8b7
debmany: Bail out if neither whiptail nor dialog is installed Thanks to Jakub Wilk for the bug report! Closes: #969024 Axel Beckert 7 months ago
2 changed file(s) with 11 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1414 [ Axel Beckert ]
1515 * Fix some rendering and consistency issues in find-dbgsym-packages(1).
1616 * Declare compliance with Debian Policy 4.5.1. (No changes needed.)
17 * debmany: Bail out properly if neither whiptail nor dialog is
18 installed. Thanks to Jakub Wilk for the bug report! (Closes: #969024)
1719
1820 [ Jakub Wilk ]
1921 * debmany: use apt-helper for package downloads. (Closes: #969025)
151151 fi
152152 else
153153 test -z "$package" && usage "You must specify one package or a Debian package file."
154 test -x $whiptail && cmd=$whiptail || cmd=$dialog
154 if [ -x $whiptail ]; then
155 cmd=$whiptail
156 elif [ -x $dialog ]; then
157 cmd=$dialog
158 else
159 echo "$0: Either whiptail or dialog is required." 1>&2
160 echo "Please install at least one of them." 1>&2
161 exit 2
162 fi
155163
156164 # determine the size of your terminal
157165 read y x <<EOF