mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change pacman.conf to testing enabled if testing was used during package installation
This commit is contained in:
parent
38444838db
commit
daa49c373c
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue