fix S_SRC to allow change of mirror

This commit is contained in:
Tobias Powalowski 2023-01-23 16:21:54 +01:00
parent 788e0e8219
commit 7fa6812877
2 changed files with 2 additions and 3 deletions

View file

@ -136,6 +136,7 @@ _set_vconsole() {
_select_source() {
_NEXTITEM="2"
_set_title
_S_SRC=""
if [[ -e "${_LOCAL_DB}" ]]; then
_getsource || return 1
else

View file

@ -1,17 +1,15 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_getsource() {
_S_SRC=""
_PACMAN_CONF=""
if [[ -e "${_LOCAL_DB}" ]]; then
_NEXTITEM="4"
_local_pacman_conf
_dialog --msgbox "Setup is running in <Local mode>.\nOnly Local package database is used for package installation.\n\nIf you want to switch to <Online mode>, you have to delete /var/cache/pacman/pkg/archboot.db and rerun this step." 10 70
_S_SRC=1
else
_select_mirror || return 1
_S_SRC=1
fi
_S_SRC=1
}
_select_mirror() {