5 [ "$1" = "configure" ] || exit 0
8 ^deb .*tp://security.debian.org etch/updates main contrib non-free
9 ^deb .*tp://ftp.carnet.hr/.*debian etch main contrib non-free
10 ^deb .*tp://ftp.carnet.hr/carnet-debian etch main non-free"
13 1 deb http://security.debian.org etch/updates main contrib non-free
14 2 deb http://ftp.carnet.hr/debian etch main contrib non-free
15 3 deb http://ftp.carnet.hr/carnet-debian etch main non-free"
17 notneeded_repos_regexp="^deb.*tp://.*debian-non-US"
23 for i in $repos_regexp; do
24 if ! grep -q "$i" /etc/apt/sources.list; then
25 needed="$needed $counter"
27 counter=$(($counter + 1))
30 if grep -q "$notneeded_repos_regexp" /etc/apt/sources.list; then
31 echo "CN: Following repositories are obsolete:"
32 grep "$notneeded_repos_regexp" /etc/apt/sources.list
36 if [ ! -z "$needed" ]; then
37 echo "CN: Following repositories are not found in your sources list:"
40 echo $repos | grep ^$i | cut -c3-300
43 echo "CN: You can add the above to /etc/apt/sources.list or just:"
44 echo "CN: # install-carnet-sources.list"