Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 643864 | Differences between
and this patch

Collapse All | Expand All

(-)a/modules/profile.eselect (-1 / +6 lines)
Lines 75-81 remove_symlink() { Link Here
75
75
76
# set the make.profile symlink
76
# set the make.profile symlink
77
set_symlink() {
77
set_symlink() {
78
	local target=$1 force=$2 targets arch parch repo repopath
78
	local target=$1 force=$2 targets arch parch repo repopath status
79
79
80
	if is_number "${target}"; then
80
	if is_number "${target}"; then
81
		targets=( $(find_targets) )
81
		targets=( $(find_targets) )
Lines 86-92 set_symlink() { Link Here
86
		target=${targets[target-1]}
86
		target=${targets[target-1]}
87
		repo=${target%%::*}; target=${target#*::}
87
		repo=${target%%::*}; target=${target#*::}
88
		repopath=${target%%::*}; target=${target#*::}
88
		repopath=${target%%::*}; target=${target#*::}
89
		status=${target#*::}; status=${status%%::*}
89
		target=${target%%::*}
90
		target=${target%%::*}
91
		if [[ ${status} == exp && -z ${force} ]]; then
92
			write_error_msg "Profile ${target} is experimental"
93
			die -q "Refusing to select experimental profile without --force"
94
		fi
90
	elif [[ -n ${target} ]]; then
95
	elif [[ -n ${target} ]]; then
91
		# if the profile was explicitly specified (rather than a number)
96
		# if the profile was explicitly specified (rather than a number)
92
		# double check and make sure it's valid
97
		# double check and make sure it's valid

Return to bug 643864