summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-11-22 12:06:43 +0000
committerUlrich Müller <ulm@gentoo.org>2009-11-22 12:06:43 +0000
commit206be4c9c02a076c55a044de76183e59002243b6 (patch)
treedac7309a3cbff9d05e52183a5a01d433c1a93c9c /eclass
parentRevision bump to fix indicator issues per bug #292235. (diff)
downloadgentoo-2-206be4c9c02a076c55a044de76183e59002243b6.tar.gz
gentoo-2-206be4c9c02a076c55a044de76183e59002243b6.tar.bz2
gentoo-2-206be4c9c02a076c55a044de76183e59002243b6.zip
Display a warning message if no site-init files were found.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/elisp-common.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index a7c574a29ce6..11f180e445a3 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.62 2009/10/08 10:50:35 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.63 2009/11/22 12:06:43 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -355,7 +355,11 @@ elisp-site-regen() {
else
mv "${T}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el
echo
- einfo "... ${#sflist[@]} site initialisation file(s) included."
+ case ${#sflist[@]} in
+ 0) ewarn "... Huh? No site initialisation files found." ;;
+ 1) einfo "... ${#sflist[@]} site initialisation file included." ;;
+ *) einfo "... ${#sflist[@]} site initialisation files included." ;;
+ esac
fi
if [ "${obsolete}" ]; then