1 |
commit: c7fe39df97de287a029c3e10058c8719655f8dc0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 22 21:13:06 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 22 21:41:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=c7fe39df |
7 |
|
8 |
list: Use a more readable (verbose) output format |
9 |
|
10 |
python.eselect.in | 8 ++++---- |
11 |
1 file changed, 4 insertions(+), 4 deletions(-) |
12 |
|
13 |
diff --git a/python.eselect.in b/python.eselect.in |
14 |
index 701c02b..e9390ec 100644 |
15 |
--- a/python.eselect.in |
16 |
+++ b/python.eselect.in |
17 |
@@ -294,10 +294,10 @@ do_list() { |
18 |
write_list_start "Available Python${filter+ ${filter#--py}} interpreters, in order of preference:" |
19 |
|
20 |
for (( i = 0; i < ${#all[@]}; ++i )); do |
21 |
- if has "${all[i]}" "${preferred[@]}"; then |
22 |
- all[i]=$(highlight_marker "${all[i]}") |
23 |
- elif has "${all[i]}" "${disabled[@]}"; then |
24 |
- all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning -)") |
25 |
+ if has "${all[i]}" "${disabled[@]}"; then |
26 |
+ all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(disabled)")") |
27 |
+ elif ! has "${all[i]}" "${preferred[@]}"; then |
28 |
+ all[i]=$(highlight_marker "${all[i]}" "(fallback)") |
29 |
fi |
30 |
done |
31 |
write_numbered_list -m "(none found)" "${all[@]}" |