diff options
Diffstat (limited to 'modules/profile.eselect')
-rw-r--r-- | modules/profile.eselect | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/profile.eselect b/modules/profile.eselect index f33f8d1..31b2c6a 100644 --- a/modules/profile.eselect +++ b/modules/profile.eselect @@ -1,5 +1,5 @@ # -*-eselect-*- vim: ft=eselect -# Copyright 2005-2022 Gentoo Authors +# Copyright 2005-2023 Gentoo Authors # Distributed under the terms of the GNU GPL version 2 or later # This is a portage-only module. @@ -88,10 +88,8 @@ set_symlink() { repopath=${target%%::*}; target=${target#*::} status=${target#*::}; status=${status%%::*} target=${target%%::*} - if [[ ${status} == exp && -z ${force} ]]; then - write_error_msg "Profile ${target} is experimental" - die -q "Refusing to select ${status} profile without --force option" - fi + [[ ${status} == exp ]] \ + && write_warning_msg "Profile ${target} is experimental" elif [[ -n ${target} ]]; then # if the profile was explicitly specified (rather than a number) # double check and make sure it's valid |