]>
Commit | Line | Data |
---|---|---|
2d18d44e AL |
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 | create_apt_conf () | |
14 | { | |
15 | echo "/etc/apt/sources.list does not exist; creating a default setup." | |
16 | ||
9516b565 | 17 | cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list |
2d18d44e AL |
18 | } |
19 | ||
20 | check_apt_conf () | |
21 | { | |
22 | true | |
23 | # this is for future expansion | |
24 | } | |
25 | ||
03321762 AL |
26 | #DEBHELPER# |
27 | ||
2d18d44e AL |
28 | case "$1" in |
29 | configure) | |
ed3dc989 | 30 | ldconfig |
2d18d44e AL |
31 | # |
32 | # If there is no /etc/apt/sources.list then create a default | |
33 | # | |
34 | if [ ! -f /etc/apt/sources.list ]; then | |
35 | 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 | else | |
40 | check_apt_conf | |
41 | fi | |
396f4b08 | 42 | if [ -f /usr/sbin/dhelp_parse ]; then |
49dfb346 | 43 | /usr/sbin/dhelp_parse -a /usr/share/doc/apt |
396f4b08 | 44 | fi |
2d18d44e | 45 | esac |