Subversion Repositories ALCASAR

Rev

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

Rev 674 Rev 758
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-urpmi.sh 674 2011-07-17 17:44:32Z richard $
2
# $Id: alcasar-urpmi.sh 758 2011-10-21 13:08:52Z franck $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX and Richard REY
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 97... Line 97...
97
# download RPM in cache 
97
# download RPM in cache 
98
echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
98
echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
99
echo "Updated RPM download. Please wait ..."
99
echo "Updated RPM download. Please wait ..."
100
echo "Il est temps d'aller prendre un café :-) "
100
echo "Il est temps d'aller prendre un café :-) "
101
echo "You should now take a Beer ;-) "
101
echo "You should now take a Beer ;-) "
102
urpmi --downloader wget --auto --auto-update --quiet --test --retry 2
102
urpmi --downloader wget --download-all /var/tmp --auto --auto-update --quiet --test --retry 2
103
if [ "$?" != "0" ]
103
if [ "$?" != "0" ]
104
then
104
then
105
	echo
105
	echo
106
	echo "Une erreur a été détectée lors de la récupération des paquetages."
106
	echo "Une erreur a été détectée lors de la récupération des paquetages."
107
	echo "An error occurs when downloading"
107
	echo "An error occurs when downloading"
Line 111... Line 111...
111
# update with cached RPM
111
# update with cached RPM
112
urpmi --auto --auto-update
112
urpmi --auto --auto-update
113
# Download of ALCASAR specifics RPM in cache (and test)
113
# Download of ALCASAR specifics RPM in cache (and test)
114
echo "Récupération des paquetages complémentaires. Veuillez patienter ..."
114
echo "Récupération des paquetages complémentaires. Veuillez patienter ..."
115
echo "Download of complementary packages. Please wait ..."
115
echo "Download of complementary packages. Please wait ..."
116
urpmi --downloader=wget --auto $PACKAGES --quiet --test --retry 2
116
urpmi --downloader wget --download-all /var/tmp --auto $PACKAGES --quiet --test --retry 2
117
if [ "$?" != "0" ]
117
if [ "$?" != "0" ]
118
then
118
then
119
	echo
119
	echo
120
	echo "Une erreur a été détectée lors de la récupération des paquetages complémentaires."
120
	echo "Une erreur a été détectée lors de la récupération des paquetages complémentaires."
121
	echo "An error occurs when downloading complementary packages"
121
	echo "An error occurs when downloading complementary packages"