Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 513764 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]
Patch for profile module
profile.eselect.patch (text/plain), 2.05 KB, created by
Ulrich Müller
on 2018-01-08 14:34:01 UTC
(
hide
)
Description:
Patch for profile module
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2018-01-08 14:34:01 UTC
Size:
2.05 KB
patch
obsolete
>diff --git a/modules/profile.eselect b/modules/profile.eselect >index c14f394..c7631c6 100644 >--- a/modules/profile.eselect >+++ b/modules/profile.eselect >@@ -42,7 +42,7 @@ get_repo_path() { > } > > # get a list of valid profiles >-# returns a line <repo>::<repo_path>::<profile> for every profile >+# returns a line <repo>::<repo_path>::<profile>::<status> for every profile > find_targets() { > local arch desc repos repo_paths i p > >@@ -60,7 +60,8 @@ find_targets() { > [[ -r ${desc} ]] || continue > # parse profiles.desc and find profiles suitable for arch > for p in $(sed -n -e \ >- "s|^${arch}[[:space:]]\+\([^[:space:]]\+\).*$|\1|p" "${desc}") >+ "s|^${arch}[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\).*$|\1::\2|p" \ >+ "${desc}") > do > echo "${repos[i]}::${repo_paths[i]}::${p}" > done >@@ -85,6 +86,7 @@ set_symlink() { > target=${targets[target-1]} > repo=${target%%::*}; target=${target#*::} > repopath=${target%%::*}; target=${target#*::} >+ target=${target%%::*} > elif [[ -n ${target} ]]; then > # if the profile was explicitly specified (rather than a number) > # double check and make sure it's valid >@@ -174,7 +176,7 @@ describe_list() { > } > > do_list() { >- local targets active i target repo repopath >+ local targets active i target repo repopath status disp > > targets=( $(find_targets) ) > [[ ${#targets[@]} -eq 0 ]] \ >@@ -187,13 +189,17 @@ do_list() { > target=${targets[i]} > repo=${target%%::*}; target=${target#*::} > repopath=${target%%::*}; target=${target#*::} >+ status=${target#*::}; status=${status%%::*} >+ target=${target%%::*} > if [[ ${repo} == "${DEFAULT_REPO}" ]]; then >- targets[i]=${target} >+ disp=${target} > else >- targets[i]=${repo}:${target} >+ disp=${repo}:${disp} > fi >+ is_output_mode brief || disp+=" (${status})" > [[ $(canonicalise "${repopath}/profiles/${target}") == "${active}" ]] \ >- && targets[i]=$(highlight_marker "${targets[i]}") >+ && disp=$(highlight_marker "${disp}") >+ targets[i]=${disp} > done > write_list_start "Available profile symlink targets:" > write_numbered_list "${targets[@]}"
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