summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-21 00:08:05 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-21 00:08:05 +0000
commit8c33bfc6492ba1f805518f0aa8228a97f791a611 (patch)
treee92a8ae7d2cfb6a1de0d3270af2b367491871107 /profiles/base
parentversion bump (diff)
downloadgentoo-2-8c33bfc6492ba1f805518f0aa8228a97f791a611.tar.gz
gentoo-2-8c33bfc6492ba1f805518f0aa8228a97f791a611.tar.bz2
gentoo-2-8c33bfc6492ba1f805518f0aa8228a97f791a611.zip
Use declare -F instead of type -t for elog function detection.
Diffstat (limited to 'profiles/base')
-rw-r--r--profiles/base/ChangeLog5
-rw-r--r--profiles/base/profile.bashrc4
2 files changed, 6 insertions, 3 deletions
diff --git a/profiles/base/ChangeLog b/profiles/base/ChangeLog
index fe708532aae6..f216b03b1fdd 100644
--- a/profiles/base/ChangeLog
+++ b/profiles/base/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for Gentoo base-profile
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/base/ChangeLog,v 1.82 2009/07/14 14:53:49 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/base/ChangeLog,v 1.83 2009/07/21 00:08:05 zmedico Exp $
+
+ 21 Jul 2009; Zac Medico <zmedico@gentoo.org> profile.bashrc:
+ Use declare -F instead of type -t for elog function detection.
14 Jul 2009; Alexis Ballier <aballier@gentoo.org> package.use.mask:
usemask vlc-1.0.0[shine], sources haven't made it to the released
diff --git a/profiles/base/profile.bashrc b/profiles/base/profile.bashrc
index c76d82f93b66..29230525ef19 100644
--- a/profiles/base/profile.bashrc
+++ b/profiles/base/profile.bashrc
@@ -1,13 +1,13 @@
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/base/profile.bashrc,v 1.2 2006/07/06 21:35:00 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/base/profile.bashrc,v 1.3 2009/07/21 00:08:05 zmedico Exp $
for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do
[[ -r ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf} ]] \
&& . ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf}
done
-if [[ $(type -t elog) != "function" ]]; then
+if ! declare -F elog >/dev/null ; then
elog() {
einfo "$@"
}