Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173096 Details for
Bug 248487
app-admin/eselect - Output from 'eselect profile show' is not suitable for setting profile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch making 'show' display relative pathname
eselect-profile-show-relative.patch (text/plain), 1.34 KB, created by
Thomas Bellman
on 2008-11-23 23:26:37 UTC
(
hide
)
Description:
Patch making 'show' display relative pathname
Filename:
MIME Type:
Creator:
Thomas Bellman
Created:
2008-11-23 23:26:37 UTC
Size:
1.34 KB
patch
obsolete
>--- ORIG-profile.eselect 2008-11-23 23:41:15.000000000 +0100 >+++ profile.eselect 2008-11-23 23:45:45.000000000 +0100 >@@ -81,13 +81,14 @@ > } > > do_show() { > write_list_start "Current make.profile symlink:" > if [[ -L "${ROOT}/etc/make.profile" ]] ; then >- local link=$(canonicalise ${ROOT}/etc/make.profile) >+ local link=$(canonicalise "${ROOT}/etc/make.profile") > local portdir=$(portageq portdir) >- link=${link##..${ROOT}/${portdir}/profiles/} >+ local profiledir=$(canonicalise "${ROOT}/${portdir}/profiles") >+ link=${link##${profiledir}/} > write_kv_list_entry "${link}" "" > else > write_kv_list_entry "(unset)" "" > fi > } >@@ -97,17 +98,19 @@ > describe_list() { > echo "List available profile symlink targets" > } > > do_list() { >- local active targets >+ local portdir profiledir active targets > targets=( $(find_targets) ) > > [[ -z "${targets}" ]] && die -q "Failed to get a list of valid profiles" > >- active=$(canonicalise ${ROOT}/etc/make.profile) >- active=${active##*profiles/} >+ portdir=$(portageq portdir) >+ profiledir=$(canonicalise "${ROOT}/${portdir}/profiles") >+ active=$(canonicalise "${ROOT}/etc/make.profile") >+ active=${active##${profiledir}/} > if [[ -n ${targets[@]} ]] ; then > local i > for (( i = 0 ; i < ${#targets[@]} ; i = i + 1 )) ; do > [[ ${targets[${i}]} == ${active} ]] \ > && targets[${i}]="${targets[${i}]} $(highlight '*' )"
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 248487
: 173096