mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
update to new repository layout, bye bye community repository
This commit is contained in:
parent
09ab66a194
commit
ac60e54781
3 changed files with 11 additions and 11 deletions
|
@ -93,9 +93,9 @@ _auto_testing()
|
|||
{
|
||||
if [[ -n "${_DOTESTING}" ]]; then
|
||||
_dialog --infobox "Enable [testing] repository on installed system..." 3 70
|
||||
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
|
||||
sed -i -e '/^#\[core-testing\]/ { n ; s/^#// }' "${_DESTDIR}"/etc/pacman.conf
|
||||
sed -i -e '/^#\[extra-testing\]/ { n ; s/^#// }' "${_DESTDIR}"/etc/pacman.conf
|
||||
sed -i -e 's:^#\[core-testing\]:\[core-testing\]:g' -e 's:^#\[extra-testing\]:\[extra-testing\]:g' "${_DESTDIR}"/etc/pacman.conf
|
||||
sleep 2
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -52,11 +52,11 @@ _select_mirror() {
|
|||
_enable_testing() {
|
||||
if ! grep -q "^\[testing\]" /etc/pacman.conf; then
|
||||
_DOTESTING=""
|
||||
_dialog --defaultno --yesno "Do you want to enable [testing]\nand [community-testing] repositories?\n\nOnly enable this if you need latest\navailable packages for testing purposes!" 9 50 && _DOTESTING=1
|
||||
_dialog --defaultno --yesno "Do you want to enable [core-testing]\nand [extra-testing] repositories?\n\nOnly enable this if you need latest\navailable packages for testing purposes!" 9 50 && _DOTESTING=1
|
||||
if [[ -n "${_DOTESTING}" ]]; then
|
||||
sed -i -e '/^#\[testing\]/ { n ; s/^#// }' /etc/pacman.conf
|
||||
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' /etc/pacman.conf
|
||||
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' /etc/pacman.conf
|
||||
sed -i -e '/^#\[core-testing\]/ { n ; s/^#// }' /etc/pacman.conf
|
||||
sed -i -e '/^#\[extra-testing\]/ { n ; s/^#// }' /etc/pacman.conf
|
||||
sed -i -e 's:^#\[core-testing\]:\[core-testing\]:g' -e 's:^#\[extra-testing\]:\[extra-testing\]:g' /etc/pacman.conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -26,11 +26,11 @@ if echo "${_BASENAME}" | grep -qw "${_RUNNING_ARCH}"; then
|
|||
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
||||
_copy_archboot_defaults "${1}"
|
||||
# enable [testing] if enabled in host
|
||||
if grep -q "^\[testing" /etc/pacman.conf; then
|
||||
if grep -q "^\[core-testing" /etc/pacman.conf; then
|
||||
echo "Enable [testing] repository in container..."
|
||||
sed -i -e '/^#\[testing\]/ { n ; s/^#// }' "${1}/etc/pacman.conf"
|
||||
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' "${1}/etc/pacman.conf"
|
||||
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' "${1}/etc/pacman.conf"
|
||||
sed -i -e '/^#\[core-testing\]/ { n ; s/^#// }' "${1}/etc/pacman.conf"
|
||||
sed -i -e '/^#\[extra-testing\]/ { n ; s/^#// }' "${1}/etc/pacman.conf"
|
||||
sed -i -e 's:^#\[core-testing\]:\[core-testing\]:g' -e 's:^#\[extra-testing\]:\[extra-testing\]:g' "${1}/etc/pacman.conf"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue