debmany: Bail out if neither whiptail nor dialog is installed
Thanks to Jakub Wilk for the bug report!
Closes: #969024
Axel Beckert
3 years ago
14 | 14 |
[ Axel Beckert ]
|
15 | 15 |
* Fix some rendering and consistency issues in find-dbgsym-packages(1).
|
16 | 16 |
* 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)
|
17 | 19 |
|
18 | 20 |
[ Jakub Wilk ]
|
19 | 21 |
* debmany: use apt-helper for package downloads. (Closes: #969025)
|
151 | 151 |
fi
|
152 | 152 |
else
|
153 | 153 |
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
|
155 | 163 |
|
156 | 164 |
# determine the size of your terminal
|
157 | 165 |
read y x <<EOF
|