summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/mailer.eclass')
-rw-r--r--eclass/mailer.eclass20
1 files changed, 12 insertions, 8 deletions
diff --git a/eclass/mailer.eclass b/eclass/mailer.eclass
index 9535e89922c7..ff711eb11925 100644
--- a/eclass/mailer.eclass
+++ b/eclass/mailer.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/mailer.eclass,v 1.8 2005/05/16 21:01:21 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mailer.eclass,v 1.9 2005/05/20 15:51:41 ferdy Exp $
#
# Original Authors: Fernando J. Pereda <ferdy@gentoo.org>
@@ -84,13 +84,17 @@ mailer_wipe_confs() {
mailer_pkg_postinst() {
if use mailwrapper ; then
- einfo " "
- einfo "Use either net-mail/mailer-config or app-admin/eclectic to change"
- einfo "to this mailer profile:"
- einfo " "
- einfo " mailer-config --set-profile ${P}"
- einfo " eclectic mailer set ${P}"
- einfo " "
+ if [[ $(mailer_get_current) == default ]] ; then
+ mailer_set_profile
+ else
+ einfo " "
+ einfo "Use either net-mail/mailer-config or app-admin/eclectic to change"
+ einfo "to this mailer profile:"
+ einfo " "
+ einfo " mailer-config --set-profile ${P}"
+ einfo " eclectic mailer set ${P}"
+ einfo " "
+ fi
fi
}