commit:     c7fe39df97de287a029c3e10058c8719655f8dc0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 22 21:13:06 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 22 21:41:52 2016 +0000
URL:        
https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=c7fe39df

list: Use a more readable (verbose) output format

 python.eselect.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python.eselect.in b/python.eselect.in
index 701c02b..e9390ec 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -294,10 +294,10 @@ do_list() {
        write_list_start "Available Python${filter+ ${filter#--py}} 
interpreters, in order of preference:"
 
        for (( i = 0; i < ${#all[@]}; ++i )); do
-               if has "${all[i]}" "${preferred[@]}"; then
-                       all[i]=$(highlight_marker "${all[i]}")
-               elif has "${all[i]}" "${disabled[@]}"; then
-                       all[i]=$(highlight_marker "${all[i]}" 
"$(highlight_warning -)")
+               if has "${all[i]}" "${disabled[@]}"; then
+                       all[i]=$(highlight_marker "${all[i]}" 
"$(highlight_warning "(disabled)")")
+               elif ! has "${all[i]}" "${preferred[@]}"; then
+                       all[i]=$(highlight_marker "${all[i]}" "(fallback)")
                fi
        done
        write_numbered_list -m "(none found)" "${all[@]}"

Reply via email to