Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: bash-completion.eclass
Date: Fri, 20 Feb 2009 06:22:17
Message-Id: E1LaOm7-0001UN-Uu@stork.gentoo.org
1 darkside 09/02/20 06:22:15
2
3 Modified: bash-completion.eclass
4 Log:
5 remove useless check in postinst to see if eselct is installed. it has to be installed now is USE=bash-completion is set. also s/einfo/elog/
6
7 Revision Changes Path
8 1.19 eclass/bash-completion.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?rev=1.19&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?rev=1.19&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?r1=1.18&r2=1.19
13
14 Index: bash-completion.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v
17 retrieving revision 1.18
18 retrieving revision 1.19
19 diff -u -r1.18 -r1.19
20 --- bash-completion.eclass 20 Feb 2009 06:16:15 -0000 1.18
21 +++ bash-completion.eclass 20 Feb 2009 06:22:15 -0000 1.19
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.18 2009/02/20 06:16:15 darkside Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.19 2009/02/20 06:22:15 darkside Exp $
27
28 # @ECLASS: bash-completion.eclass
29 # @MAINTAINER:
30 @@ -48,21 +48,16 @@
31 # The bash-completion pkg_postinst function, which is exported
32 bash-completion_pkg_postinst() {
33 if useq bash-completion ; then
34 - echo
35 - einfo "To enable command-line completion for ${PN}, run:"
36 - einfo
37 - if has_version app-admin/eselect ; then
38 - einfo " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
39 - else
40 - einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
41 - einfo
42 - einfo "to install locally, or"
43 - einfo
44 - einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
45 - einfo
46 - einfo "to install system-wide."
47 - einfo "Read bash-completion-config(1) for more information."
48 - fi
49 - echo
50 + elog "To enable command-line completion for ${PN}, run:"
51 + elog
52 + elog " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
53 + elog " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
54 + elog
55 + elog "to install locally, or"
56 + elog
57 + elog " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
58 + elog
59 + elog "to install system-wide."
60 + elog "Read bash-completion-config(1) for more information."
61 fi
62 }