change pacman.conf to testing enabled if testing was used during package installation

This commit is contained in:
Tobias Powalowski 2013-08-26 08:18:05 +02:00
parent 38444838db
commit daa49c373c

View file

@ -2873,6 +2873,7 @@ install_packages() {
auto_mdadm
auto_luks
auto_pacman
auto_testing
# tear down the chroot environment
chroot_umount
}
@ -2950,6 +2951,15 @@ auto_pacman()
fi
}
# If [testing] repository was enabled during installation,
# enable it on installed system too!
auto_testing()
{
sed -i -e '/^#\[testing\]/ { n ; s/^#// }' ${DESTDIR}/etc/pacman.conf
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' ${DESTDIR}/etc/pacman.conf
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' ${DESTDIR}/etc/pacman.conf
}
# donetwork()
# Hand-hold through setting up networking
#