5 [ "$1" = "configure" ] || exit 0
6 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
9 ^deb .*tp://security.debian.org etch/updates main contrib non-free
10 ^deb .*tp://ftp.carnet.hr/.*debian etch main contrib non-free
11 ^deb .*tp://ftp.carnet.hr/carnet-debian etch main non-free"
14 1 deb http://security.debian.org etch/updates main contrib non-free
15 2 deb http://ftp.carnet.hr/debian etch main contrib non-free
16 3 deb http://ftp.carnet.hr/carnet-debian etch main non-free"
18 notneeded_repos_regexp="^deb.*tp://.*debian-non-US"
24 for i in $repos_regexp; do
25 if ! grep -q "$i" /etc/apt/sources.list; then
26 needed="$needed $counter"
28 counter=$(($counter + 1))
31 if grep -q "$notneeded_repos_regexp" /etc/apt/sources.list; then
32 echo "CN: Following repositories are obsolete:"
33 grep "$notneeded_repos_regexp" /etc/apt/sources.list
37 if [ ! -z "$needed" ]; then
38 echo "CN: Following repositories are not found in your sources list:"
41 echo $repos | grep ^$i | cut -c3-300
44 echo "CN: You can add the above to /etc/apt/sources.list or just:"
45 echo "CN: # install-carnet-sources.list"