mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00: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_mdadm
|
||||||
auto_luks
|
auto_luks
|
||||||
auto_pacman
|
auto_pacman
|
||||||
|
auto_testing
|
||||||
# tear down the chroot environment
|
# tear down the chroot environment
|
||||||
chroot_umount
|
chroot_umount
|
||||||
}
|
}
|
||||||
|
@ -2950,6 +2951,15 @@ auto_pacman()
|
||||||
fi
|
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()
|
# donetwork()
|
||||||
# Hand-hold through setting up networking
|
# Hand-hold through setting up networking
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue