]> git.saurik.com Git - apt.git/blob - debian/postinst
releasing version 0.8.16~exp12ubuntu7
[apt.git] / debian / postinst
1 #! /bin/sh
2
3 # apt postinst, based liberally on James Troup's gpm postinst
4 # Copyright (C) 1998, Ben Gertzfield <che@debian.org>
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 set -e
12
13 dpkg-maintscript-helper rm_conffile /etc/apt/apt.conf.d/01ubuntu \
14 0.8.16~exp12ubuntu6 -- "$@"
15
16 create_apt_conf ()
17 {
18 EXAMPLE_SOURCE=/usr/share/doc/apt/examples/sources.list
19 if [ -f $EXAMPLE_SOURCE ]; then
20 cp $EXAMPLE_SOURCE /etc/apt/sources.list
21 fi
22 }
23
24 check_apt_conf ()
25 {
26 true
27 # this is for future expansion
28 }
29
30 #DEBHELPER#
31
32 case "$1" in
33 configure)
34 #
35 # If there is no /etc/apt/sources.list then create a default
36 #
37 if [ ! -f /etc/apt/sources.list ]; then
38 create_apt_conf
39 else
40 check_apt_conf
41 fi
42 esac