commit: c35ddadceeca65d617c3e1254d9c0a96dd9cfb5c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Dec 3 12:17:17 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 3 12:20:13 2017 +0000 URL: https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=c35ddadc
list: Mark uninstalled Pythons as such Bug: https://bugs.gentoo.org/639578 python.eselect.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python.eselect.in b/python.eselect.in index 451529d..bfb126a 100644 --- a/python.eselect.in +++ b/python.eselect.in @@ -280,6 +280,7 @@ do_list() { done local all=( $(get_all_pythons ${filter}) ) + local installed=( $(get_installed_pythons ${filter}) ) local preferred=( $(get_preferred_pythons ${filter}) ) local disabled=( $(get_disabled_pythons) ) @@ -288,6 +289,8 @@ do_list() { for (( i = 0; i < ${#all[@]}; ++i )); do if has "${all[i]}" "${disabled[@]}"; then all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(disabled)")") + elif ! has "${all[i]}" "${installed[@]}"; then + all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(uninstalled)")") elif ! has "${all[i]}" "${preferred[@]}"; then all[i]=$(highlight_marker "${all[i]}" "(fallback)") fi
