mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
Do not always enable testing repository
This commit is contained in:
parent
14a67fff2e
commit
2f22ab5f92
1 changed files with 6 additions and 4 deletions
|
@ -2974,9 +2974,11 @@ auto_pacman()
|
|||
# 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
|
||||
if [[ "${DOTESTING}" == "yes" ]]; then
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
||||
# donetwork()
|
||||
|
|
Loading…
Reference in a new issue