Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 513844 Details for
Bug 643864
eselect profile list should display the profile status (stable/dev/exp)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Require --force to select an experimental profile
profile.eselect.patch (text/plain), 990 bytes, created by
Ulrich Müller
on 2018-01-09 00:00:25 UTC
(
hide
)
Description:
Require --force to select an experimental profile
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2018-01-09 00:00:25 UTC
Size:
990 bytes
patch
obsolete
>diff --git a/modules/profile.eselect b/modules/profile.eselect >index de85f90..c97fb23 100644 >--- a/modules/profile.eselect >+++ b/modules/profile.eselect >@@ -75,7 +75,7 @@ remove_symlink() { > > # set the make.profile symlink > set_symlink() { >- local target=$1 force=$2 targets arch parch repo repopath >+ local target=$1 force=$2 targets arch parch repo repopath status > > if is_number "${target}"; then > targets=( $(find_targets) ) >@@ -86,7 +86,12 @@ set_symlink() { > target=${targets[target-1]} > repo=${target%%::*}; target=${target#*::} > 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 experimental profile without --force" >+ fi > elif [[ -n ${target} ]]; then > # if the profile was explicitly specified (rather than a number) > # double check and make sure it's valid
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 643864
:
513764
|
513776
| 513844