X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=apt-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=83441686dee55aa782176dffa7ef7e187d0a4018;hp=b3b9e4a5d66c7e6fa0dd19ca8e55d8ef6c38afd4;hb=3326984e1da5c567e27b10f2ae97fbd080c8a9bd;hpb=40427b66371216557a1665498fa0a7b59334585f diff --git a/debian/postinst b/debian/postinst index b3b9e4a..8344168 100755 --- a/debian/postinst +++ b/debian/postinst @@ -6,16 +6,16 @@ set -e [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx repos_regexp=" -^deb .*tp://security.debian.org.*stretch/updates main contrib non-free -^deb .*tp://ftp.hr.debian.org/.*debian.*stretch main contrib non-free -^deb .*tp://ftp.hr.debian.org/.*debian.*stretch-updates main contrib non-free -^deb .*tp://ftp.carnet.hr/carnet-debian.*stretch main non-free" +^deb .*tp://security.debian.org.*buster/updates main contrib non-free +^deb .*tp://ftp.hr.debian.org/.*debian.*buster main contrib non-free +^deb .*tp://ftp.hr.debian.org/.*debian.*buster-updates main contrib non-free +^deb .*tp://ftp.carnet.hr/carnet-debian.*buster main non-free" repos=" -1 deb http://security.debian.org/ stretch/updates main contrib non-free -2 deb http://ftp.hr.debian.org/debian/ stretch main contrib non-free -3 deb http://ftp.hr.debian.org/debian/ stretch-updates main contrib non-free -4 deb http://ftp.carnet.hr/carnet-debian/ carnet-stretch main non-free" +1 deb http://security.debian.org/ buster/updates main contrib non-free +2 deb http://ftp.hr.debian.org/debian/ buster main contrib non-free +3 deb http://ftp.hr.debian.org/debian/ buster-updates main contrib non-free +4 deb http://ftp.carnet.hr/carnet-debian/ carnet-buster main non-free" notneeded_repos_regexp="^deb.*tp://.*debian-non-US" @@ -31,19 +31,19 @@ for i in $repos_regexp; do done if grep -q "$notneeded_repos_regexp" /etc/apt/sources.list; then - echo "CN: Following repositories are obsolete:" + echo "CN: Sljedeci repozitoriji nisu vise potrebni:" grep "$notneeded_repos_regexp" /etc/apt/sources.list echo "" fi if [ ! -z "$needed" ]; then - echo "CN: Following repositories are not found in your sources list:" + echo "CN: Ovi repozitoriji nisu pronadjeni u vasoj datoteci sources list:" IFS=" " for i in $needed; do echo $repos | grep ^$i | cut -c3-300 done echo "" - echo "CN: You can add the above to /etc/apt/sources.list or just:" + echo "CN: Gornje repozitorije mozete rucno dodati u /etc/apt/sources.list ili samo pokrenuti:" echo "CN: # install-carnet-sources.list" fi