~jr/ubuntu/oneiric/apt/bzr-get-rename

« back to all changes in this revision

Viewing changes to dselect/install

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2005-03-07 20:08:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050307200833-0lxdgg2cb4oculdv
Tags: 0.6.35
* Merge apt--mvo--0 (incorporates 0.6.34ubuntu1):
  - Implement MaxSize and MaxAge in apt.cron.daily, to prevent the cache
    from growing too large (Ubuntu #6761)
  - some comments about the pkgAcqMetaSig::Custom600Headers() added
  - use gpg --with-colons
  - commented the ftp no_proxy unseting in methods/ftp.cc
  - added support for "Acquire::gpgv::options" in methods/gpgv.cc
* Merge bubulle@debian.org--2005/apt--main--0
  - Make capitalization more consistent
  - Un-fuzzy translations resulting from capitalization changes
  - Italian translation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#!/bin/bash
 
2
 
 
3
# Set the textdomain for the translations using $"..."
 
4
TEXTDOMAIN="apt"
2
5
 
3
6
# Get the configuration from /etc/apt/apt.conf
4
7
CLEAN="prompt"
26
29
                case $2 in
27
30
                        Y|y)    defp="[Y/n]" def=y;;
28
31
                        N|n)    defp="[y/N]" def=n;;
29
 
                        *)      echo "Bad default setting!" 1>&2; exit 1;;
 
32
                        *)      echo $"Bad default setting!" 1>&2; exit 1;;
30
33
                esac
31
34
        else
32
35
                defp="[y/N]" def=n
45
48
 
46
49
if [ x$WAIT = "xtrue" ]; then
47
50
   $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" -d dselect-upgrade
48
 
   echo "Press enter to continue." && read RES
 
51
   echo $"Press enter to continue." && read RES
49
52
   $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade
50
53
   RES=$?
51
54
else
77
80
   case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
78
81
     auto)
79
82
       $APTGET "$APT_OPT0" "$APT_OPT1" autoclean &&
80
 
           echo "Press enter to continue." && read RES && exit 0;
 
83
           echo $"Press enter to continue." && read RES && exit 0;
81
84
       ;;
82
85
     always)
83
86
       $APTGET "$APT_OPT0" "$APT_OPT1" clean &&
84
 
           echo "Press enter to continue." && read RES && exit 0;
 
87
           echo $"Press enter to continue." && read RES && exit 0;
85
88
       ;;
86
89
     prompt)
87
90
       exec 3>&1
88
 
       if [ `yesno "Do you want to erase any previously downloaded .deb files?" y` = y ]; then
 
91
       if [ `yesno $"Do you want to erase any previously downloaded .deb files?" y` = y ]; then
89
92
          $APTGET "$APT_OPT0" "$APT_OPT1" clean &&
90
 
            echo "Press enter to continue." && read RES && exit 0;
 
93
            echo $"Press enter to continue." && read RES && exit 0;
91
94
       fi
92
95
       ;;
93
96
     *) 
94
97
       ;;
95
98
   esac   
96
99
else
97
 
   echo "Some errors occurred while unpacking. I'm going to configure the"
98
 
   echo "packages that were installed. This may result in duplicate errors"
99
 
   echo "or errors caused by missing dependencies. This is OK, only the errors"
100
 
   echo "above this message are important. Please fix them and run [I]nstall again"
101
 
   echo "Press enter to continue."
 
100
   echo $"Some errors occurred while unpacking. I'm going to configure the"
 
101
   echo $"packages that were installed. This may result in duplicate errors"
 
102
   echo $"or errors caused by missing dependencies. This is OK, only the errors"
 
103
   echo $"above this message are important. Please fix them and run [I]nstall again"
 
104
   echo $"Press enter to continue."
102
105
   read RES && $DPKG "$DPKG_OPTS" --configure -a
103
106
   exit 100
104
107
fi