[scripts] make "equo update" more resilient to network issues
This commit is contained in:
parent
e4da6149e9
commit
73ea097055
@ -4,10 +4,16 @@
|
||||
rm -f /var/run/entropy/entropy.lock
|
||||
|
||||
export FORCE_EAPI=2
|
||||
equo update
|
||||
if [ "${?}" != "0" ]; then
|
||||
sleep 1200 || exit 1
|
||||
equo update || exit 1
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
sleep 1200 || exit 1
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# disable all mirrors but GARR
|
||||
|
@ -9,13 +9,20 @@ if [ -d "/usr/portage/licenses" ]; then
|
||||
export ACCEPT_LICENSE="$(ls /usr/portage/licenses -1 | xargs)"
|
||||
fi
|
||||
|
||||
export ETP_NOINTERACTIVE=1
|
||||
export FORCE_EAPI=2
|
||||
equo update
|
||||
if [ "${?}" != "0" ]; then
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
sleep 1200 || exit 1
|
||||
equo update || exit 1
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export ETP_NOINTERACTIVE=1
|
||||
equo upgrade || exit 1
|
||||
echo "-5" | equo conf update
|
||||
rm -rf /var/lib/entropy/client/packages
|
||||
|
@ -4,10 +4,16 @@
|
||||
rm -f /var/run/entropy/entropy.lock
|
||||
|
||||
export FORCE_EAPI=2
|
||||
equo update
|
||||
if [ "${?}" != "0" ]; then
|
||||
sleep 1200 || exit 1
|
||||
equo update || exit 1
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
sleep 1200 || exit 1
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# disable all mirrors but GARR
|
||||
|
Loading…
Reference in New Issue
Block a user