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

« back to all changes in this revision

Viewing changes to debian/postinst

  • 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:
12
12
 
13
13
create_apt_conf ()
14
14
{
15
 
 echo "/etc/apt/sources.list does not exist; creating a default setup."
16
 
 
17
 
 cp /usr/doc/apt/examples/sources.list /etc/apt/sources.list
 
15
 cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list
18
16
}
19
17
 
20
18
check_apt_conf ()
27
25
 
28
26
case "$1" in
29
27
       configure)
30
 
               ldconfig
31
28
               #
32
29
               # If there is no /etc/apt/sources.list then create a default
33
30
               #
34
31
               if [ ! -f /etc/apt/sources.list ]; then
35
32
                 create_apt_conf
36
 
                 echo
37
 
                 echo "If you wish to change the default sites from which APT fetches Debian"
38
 
                 echo "packages, please edit the file /etc/apt/sources.list."
39
33
               else
40
34
                 check_apt_conf
41
35
               fi
42
 
               if [ -f /usr/sbin/dhelp_parse ]; then
43
 
                 /usr/sbin/dhelp_parse -a /usr/doc/apt
44
 
               fi
45
36
esac