]>
git.saurik.com Git - apt.git/blob - dselect/install
3 # Get the configuration from /etc/apt/apt.conf
6 APTGET
="/usr/bin/apt-get"
9 RES
=`apt-config shell CLEAN DSelect::Clean OPTS DSelect::Options \
10 DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get`
21 Y
|y
) defp
="(Y/n)" def
=y
;;
22 N
|n
) defp
="(y/N)" def
=n
;;
23 *) echo "Bad default setting!" 1>&2; exit 1;;
29 echo -n "$1$defp" 1>&3
40 $APTGET $OPTS dselect
-upgrade
43 # 1 means the user choose no at the prompt
44 if [ $RES -eq 1 ]; then
49 if [ $RES -eq 0 ]; then
50 # Check the cleaning mode
51 case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
53 $APTGET clean
&& echo "Press enter to continue." && read RES
&& exit 0;
57 if [ `yesno "Do you want to erase the downloaded files " y` = y
]; then
58 $APTGET clean
&& echo "Press enter to continue." && read RES
&& exit 0;
65 echo "Some errors occurred while unpacking. I'm going to configure the"
66 echo "packages that were installed. This may result in duplicate errors"
67 echo "or errors caused by missing dependencies. This is OK, only the errors"
68 echo "above this message are important. Please fix them and run [I]nstall again"
69 echo "Press enter to continue."
70 read RES
&& $DPKG --configure -a