[scripts] remaster_generic_inner_chroot_script: update new-style repositories.conf.d/ config files as well

This commit is contained in:
Fabio Erculiani 2011-10-31 14:06:53 +01:00
parent d857901cc8
commit 3fa706b9e3

View File

@ -11,6 +11,13 @@ if [ "${?}" != "0" ]; then
fi
# disable all mirrors but GARR
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 /etc/entropy/repositories.conf
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