summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2009-02-20 06:22:15 +0000
committerJeremy Olexa <darkside@gentoo.org>2009-02-20 06:22:15 +0000
commitd70022eb76794ad034e166d9e16da09fe7f5ff5a (patch)
treefa933f7f17cb744635eb43843e41e84620175a3d /eclass
parentVersion bump. Cleanup (diff)
downloadgentoo-2-d70022eb76794ad034e166d9e16da09fe7f5ff5a.tar.gz
gentoo-2-d70022eb76794ad034e166d9e16da09fe7f5ff5a.tar.bz2
gentoo-2-d70022eb76794ad034e166d9e16da09fe7f5ff5a.zip
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/
Diffstat (limited to 'eclass')
-rw-r--r--eclass/bash-completion.eclass29
1 files changed, 12 insertions, 17 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass
index bb2b3e5a9adf..7150d7721142 100644
--- a/eclass/bash-completion.eclass
+++ b/eclass/bash-completion.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.18 2009/02/20 06:16:15 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.19 2009/02/20 06:22:15 darkside Exp $
# @ECLASS: bash-completion.eclass
# @MAINTAINER:
@@ -48,21 +48,16 @@ dobashcompletion() {
# The bash-completion pkg_postinst function, which is exported
bash-completion_pkg_postinst() {
if useq bash-completion ; then
- echo
- einfo "To enable command-line completion for ${PN}, run:"
- einfo
- if has_version app-admin/eselect ; then
- einfo " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
- else
- einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
- einfo
- einfo "to install locally, or"
- einfo
- einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
- einfo
- einfo "to install system-wide."
- einfo "Read bash-completion-config(1) for more information."
- fi
- echo
+ elog "To enable command-line completion for ${PN}, run:"
+ elog
+ elog " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
+ elog " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
+ elog
+ elog "to install locally, or"
+ elog
+ elog " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
+ elog
+ elog "to install system-wide."
+ elog "Read bash-completion-config(1) for more information."
fi
}