From c35ddadceeca65d617c3e1254d9c0a96dd9cfb5c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 3 Dec 2017 13:17:17 +0100 Subject: 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 -- cgit v1.2.3-65-gdbad