update to new repository layout, bye bye community repository

This commit is contained in:
Tobias Powalowski 2023-05-22 08:55:06 +02:00
parent 09ab66a194
commit ac60e54781
3 changed files with 11 additions and 11 deletions

View file

@ -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
}

View file

@ -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
}

View file

@ -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