summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-04-17 13:39:21 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-04-17 13:39:21 +0000
commit936a5738a1d0d277fad39e8cee9493e273126817 (patch)
treee96c33cbef8e514eb8b4c51553383f20dc627a0e /eclass
parentbugfix release (diff)
downloadgentoo-2-936a5738a1d0d277fad39e8cee9493e273126817.tar.gz
gentoo-2-936a5738a1d0d277fad39e8cee9493e273126817.tar.bz2
gentoo-2-936a5738a1d0d277fad39e8cee9493e273126817.zip
Use ${PN} if ${BASH_COMPLETION_NAME} is unset.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/bash-completion.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass
index fa1eda481720..a7260368d579 100644
--- a/eclass/bash-completion.eclass
+++ b/eclass/bash-completion.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.9 2005/03/14 10:45:11 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.10 2005/04/17 13:39:21 ka0ttic Exp $
#
# Simple eclass that provides an interface for installing
# contributed (ie not included in bash-completion proper)
@@ -43,11 +43,11 @@ bash-completion_pkg_postinst() {
echo
einfo "To enable command-line completion for ${PN}, run:"
einfo
- einfo " bash-completion-config --install ${BASH_COMPLETION_NAME}"
+ 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}"
+ 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."