Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] eselect r516 - in trunk: . modules
Date: Tue, 28 Apr 2009 11:34:58
Message-Id: E1LylaS-0001nt-JY@stork.gentoo.org
1 Author: ulm
2 Date: 2009-04-28 11:34:56 +0000 (Tue, 28 Apr 2009)
3 New Revision: 516
4
5 Modified:
6 trunk/ChangeLog
7 trunk/NEWS
8 trunk/modules/mailer.eselect
9 Log:
10 Highlight selected target in mailer module, bug 220473.
11
12 Modified: trunk/ChangeLog
13 ===================================================================
14 --- trunk/ChangeLog 2009-04-28 09:55:27 UTC (rev 515)
15 +++ trunk/ChangeLog 2009-04-28 11:34:56 UTC (rev 516)
16 @@ -1,5 +1,8 @@
17 2009-04-28 Ulrich Mueller <ulm@g.o>
18
19 + * modules/mailer.eselect (do_list): Highlight selected target,
20 + patch by Karl Hakimian <t4y68ds02@××××××××××.com> in 220473.
21 +
22 * configure.ac: Fix test for greadlink.
23
24 * configure.ac: Add --with-pm option for configuring the preferred
25
26 Modified: trunk/NEWS
27 ===================================================================
28 --- trunk/NEWS 2009-04-28 09:55:27 UTC (rev 515)
29 +++ trunk/NEWS 2009-04-28 11:34:56 UTC (rev 516)
30 @@ -6,6 +6,7 @@
31 - Fixed bug #155814: Clear aliases and shell functions.
32 - Fixed bug #156866: Handle missing scripts in rc module.
33 - Fixed bug #180966: Make rc module work with OpenRC.
34 + - Fixed bug #220473: Highlight selected target in mailer module.
35 - Various improvements in opengl module.
36
37 New features:
38
39 Modified: trunk/modules/mailer.eselect
40 ===================================================================
41 --- trunk/modules/mailer.eselect 2009-04-28 09:55:27 UTC (rev 515)
42 +++ trunk/modules/mailer.eselect 2009-04-28 11:34:56 UTC (rev 516)
43 @@ -1,4 +1,4 @@
44 -# Copyright 1999-2005 Gentoo Foundation
45 +# Copyright 1999-2009 Gentoo Foundation
46 # Distributed under the terms of the GNU General Public License v2
47 # $Id$
48
49 @@ -83,14 +83,15 @@
50 for (( i = 0 ; i < ${#targets[@]} ; i = i + 1 )) ; do
51 # any more elegant way to do this?
52 local profile
53 - profile="$(canonicalise ${ROOT}/etc/mail/mailer.conf )"
54 - [[ ${targets[${i}]} == ${profile%.mailer} ]] && \
55 - targets[${i}]="${targets[${i}]} $(highlight '*' )"
56 - done
57 - write_numbered_list "${targets[@]}"
58 - else
59 - write_kv_list_entry "(none found)" ""
60 - fi
61 + profile=$(basename \
62 + "$(canonicalise "${ROOT}/etc/mail/mailer.conf")")
63 + [[ ${targets[i]} = ${profile%.mailer} ]] \
64 + && targets[i]="${targets[i]} $(highlight '*')"
65 + done
66 + write_numbered_list "${targets[@]}"
67 + else
68 + write_kv_list_entry "(none found)" ""
69 + fi
70 }
71
72 ### set action ###