5 [ "$1" = "configure" ] || exit 0
6 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
9 ^deb .*tp://security.debian.org.*stretch/updates main contrib non-free
10 ^deb .*tp://ftp.hr.debian.org/.*debian.*stretch main contrib non-free
11 ^deb .*tp://ftp.hr.debian.org/.*debian.*stretch-updates main contrib non-free
12 ^deb .*tp://ftp.carnet.hr/carnet-debian.*stretch main non-free"
15 1 deb http://security.debian.org/ stretch/updates main contrib non-free
16 2 deb http://ftp.hr.debian.org/debian/ stretch main contrib non-free
17 3 deb http://ftp.hr.debian.org/debian/ stretch-updates main contrib non-free
18 4 deb http://ftp.carnet.hr/carnet-debian/ carnet-stretch main non-free"
20 notneeded_repos_regexp="^deb.*tp://.*debian-non-US"
26 for i in $repos_regexp; do
27 if ! grep -q "$i" /etc/apt/sources.list; then
28 needed="$needed $counter"
30 counter=$(($counter + 1))
33 if grep -q "$notneeded_repos_regexp" /etc/apt/sources.list; then
34 echo "CN: Following repositories are obsolete:"
35 grep "$notneeded_repos_regexp" /etc/apt/sources.list
39 if [ ! -z "$needed" ]; then
40 echo "CN: Following repositories are not found in your sources list:"
43 echo $repos | grep ^$i | cut -c3-300
46 echo "CN: You can add the above to /etc/apt/sources.list or just:"
47 echo "CN: # install-carnet-sources.list"