Subversion Repositories ALCASAR

Rev

Rev 1943 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1943 Rev 1983
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1943 2016-06-13 22:20:13Z richard $
2
# $Id: alcasar-urpmi.sh 1983 2016-07-08 10:14:42Z raphael.pion $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux and Rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 24... Line 24...
24
}
24
}
25
EOF
25
EOF
26
echo ${!MIRRORLIST}
26
echo ${!MIRRORLIST}
27
urpmi.addmedia core --probe-synthesis --mirrorlist ${!MIRRORLIST} /media/core/release
27
urpmi.addmedia core --probe-synthesis --mirrorlist ${!MIRRORLIST} /media/core/release
28
urpmi.addmedia core-updates --update --probe-synthesis --mirrorlist ${!MIRRORLIST} /media/core/updates
28
urpmi.addmedia core-updates --update --probe-synthesis --mirrorlist ${!MIRRORLIST} /media/core/updates
-
 
29
urpmi.addmedia non-free --probe-synthesis --mirrorlist ${!MIRRORLIST} /media/nonfree/release
29
}
30
}
30
 
31
 
31
rpm_error ()
32
rpm_error ()
32
{
33
{
33
echo
34
echo
Line 74... Line 75...
74
	#                       For Europeans 
75
	#                       For Europeans 
75
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
76
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
76
	#                       For International install
77
	#                       For International install
77
	MIRRORLIST2="http://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
78
	MIRRORLIST2="http://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
78
	try_nb="0"; nb_repository="0"
79
	try_nb="0"; nb_repository="0"
79
	while [ "$nb_repository" != "2" ]
80
	while [ "$nb_repository" != "3" ]
80
	do
81
	do
81
		try_nb=`expr $try_nb + 1`
82
		try_nb=`expr $try_nb + 1`
82
		MIRRORLIST="MIRRORLIST$try_nb"
83
		MIRRORLIST="MIRRORLIST$try_nb"
83
		rpm_repository_sync 
84
		rpm_repository_sync 
84
		nb_repository=`cat /etc/urpmi/urpmi.cfg|grep mirrorlist|wc -l`
85
		nb_repository=`cat /etc/urpmi/urpmi.cfg|grep mirrorlist|wc -l`
85
		if [ "$nb_repository" != "2" ]
86
		if [ "$nb_repository" != "3" ]
86
		then
87
		then
87
			if [ $Lang == "fr" ]
88
			if [ $Lang == "fr" ]
88
			then	
89
			then	
89
				echo "Une erreur a été détectée lors de la synchronisation avec le dépot N°$try_nb."
90
				echo "Une erreur a été détectée lors de la synchronisation avec le dépot N°$try_nb."
90
			else
91
			else