summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-02-22 22:13:06 +0100
committerMichał Górny <mgorny@gentoo.org>2016-02-22 22:41:52 +0100
commitc7fe39df97de287a029c3e10058c8719655f8dc0 (patch)
tree6fd72a13738942f292d1c39fde3daf6bc75098c4
parentset_man_symlink: fix variables (diff)
downloadeselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.tar.gz
eselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.tar.bz2
eselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.zip
list: Use a more readable (verbose) output format
-rw-r--r--python.eselect.in8
1 files 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[@]}"