Merge branch 'beliys' into 'master'

add stable-staging branch (fix...

Closes #265

See merge request applications/manjaro-architect!264
merge-requests/273/head
Matti Hyttinen 3 years ago
commit 12a2fdd855

@ -208,7 +208,7 @@ id_system() {
check_for_error "system: $SYSTEM, init: $H_INIT nw-client: $NW_CMD" check_for_error "system: $SYSTEM, init: $H_INIT nw-client: $NW_CMD"
# evaluate host branch # evaluate host branch
ini system.branch "$(grep -oE -m 1 "unstable|stable|testing" /etc/pacman.d/mirrorlist)" ini system.branch "$(grep -oE -m 1 "stable|stable-staging|testing|unstable" /etc/pacman.d/mirrorlist)"
} }
# If there is an error, display it and go back to main menu. In any case, write to logfile. # If there is an error, display it and go back to main menu. In any case, write to logfile.
@ -461,9 +461,10 @@ configure_mirrorlist() {
rank_mirrors() { rank_mirrors() {
#Choose the branch for mirrorlist #Choose the branch for mirrorlist
local branch="" local branch=""
local oldbranch="$(grep -oE -m 1 "unstable|stable|testing" /etc/pacman.d/mirrorlist)" local oldbranch="$(grep -oE -m 1 "stable|stable-staging|testing|unstable" /etc/pacman.d/mirrorlist)"
branch=$(DIALOG " $_MirrorBranch " --radiolist "\n$_UseSpaceBar\n " 0 0 3 \ branch=$(DIALOG " $_MirrorBranch " --radiolist "\n$_UseSpaceBar\n " 0 0 3 \
"stable" "-" on \ "stable" "-" on \
"stable-staging" "-" off \
"testing" "-" off \ "testing" "-" off \
"unstable" "-" off 3>&1 1>&2 2>&3) "unstable" "-" off 3>&1 1>&2 2>&3)
[[ -z "${branch}" ]] && return 0 [[ -z "${branch}" ]] && return 0

Loading…
Cancel
Save