diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | modules/profile.eselect | 8 |
2 files changed, 8 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2023-09-09 Ulrich Müller <ulm@gentoo.org> + + * modules/profile.eselect (set_symlink): Selecting an experimental + profile without --force is no longer a fatal error. Bug 913480. + 2023-08-24 Ulrich Müller <ulm@gentoo.org> * misc/eselect-mode.el: Enable lexical binding. 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 |