2012-07-24 16:13:17 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# make sure there is no stale pid file around that prevents entropy from running
|
|
|
|
rm -f /var/run/entropy/entropy.lock
|
|
|
|
|
|
|
|
export FORCE_EAPI=2
|
|
|
|
equo update
|
|
|
|
if [ "${?}" != "0" ]; then
|
|
|
|
sleep 1200 || exit 1
|
|
|
|
equo update || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# disable all mirrors but GARR
|
|
|
|
for repo_conf in /etc/entropy/repositories.conf /etc/entropy/repositories.conf.d/entropy_*; do
|
|
|
|
# skip .example files
|
|
|
|
if [[ "${repo_conf}" =~ .*\.example$ ]]; then
|
|
|
|
echo "skipping ${repo_conf}"
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
sed -n -e "/pkg.sabayon.org/p" -e "/garr.it/p" -e "/^branch/p" \
|
|
|
|
-e "/^product/p" -e "/^official-repository-id/p" -e "/^differential-update/p" \
|
|
|
|
-i "${repo_conf}"
|
|
|
|
done
|
|
|
|
|
2012-08-01 12:01:47 +02:00
|
|
|
# mask icedtea, since it pulls it a shitload of deps
|
|
|
|
# prefer icedtea-bin or others
|
2012-07-24 16:13:17 +02:00
|
|
|
equo mask "dev-java/icedtea"
|