Subversion Repositories ALCASAR

Rev

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

Rev 3211 Rev 3216
Line 53... Line 53...
53
		echo "If this problem occurs again, change the MIRRORLIST[1&2] variables in the file 'scripts/alcasar-rpm.sh'"
53
		echo "If this problem occurs again, change the MIRRORLIST[1&2] variables in the file 'scripts/alcasar-rpm.sh'"
54
	fi
54
	fi
55
}
55
}
56
 
56
 
57
# We prefer wget than curl
57
# We prefer wget than curl
-
 
58
wget_exist=`rpm -qa|grep wget|wc -l`
-
 
59
if [ "$wget_exist" -eq "0" ]
-
 
60
then
58
urpmi --no-verify-rpm --auto rpms/$ARCH/wget*.rpm
61
	urpmi --no-verify-rpm --auto rpms/$ARCH/wget*.rpm
59
 
62
fi
60
# Set the RPM repository (if not already set)
63
# Set the RPM repository (if not already set)
61
cp /etc/urpmi/urpmi.cfg /etc/urpmi/urpmi.cfg.old
64
cp /etc/urpmi/urpmi.cfg /etc/urpmi/urpmi.cfg.old
62
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
65
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
63
MIRROR_NBR=3
66
MIRROR_NBR=3
64
#                       For French
67
#                       For French
Line 226... Line 229...
226
/usr/sbin/urpme --auto --auto-orphans
229
/usr/sbin/urpme --auto --auto-orphans
227
 
230
 
228
# Save chilli launch script (erase with new rpm one)
231
# Save chilli launch script (erase with new rpm one)
229
[ -e /etc/chilli.conf ] && cp /etc/chilli.conf /tmp/
232
[ -e /etc/chilli.conf ] && cp /etc/chilli.conf /tmp/
230
# Install home made RPMs
233
# Install home made RPMs
231
for pkg in `ls rpms/$ARCH/*.rpm`
234
for pkg in `ls rpms/$ARCH/*.rpm|grep -v wget`
232
do
235
do
233
    urpmi --no-verify --auto $pkg
236
    urpmi --no-verify --auto $pkg
234
done
237
done
235
# restore chilli launch script
238
# restore chilli launch script
236
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/
239
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/