diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2005-05-20 15:51:41 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2005-05-20 15:51:41 +0000 |
commit | ba60b6071730dca98b932b16f6a730dbc89e5436 (patch) | |
tree | 32572e350d033f9f08c72b8b51610191fbad3d94 /eclass | |
parent | stable on amd64 wrt #93215 (diff) | |
download | gentoo-2-ba60b6071730dca98b932b16f6a730dbc89e5436.tar.gz gentoo-2-ba60b6071730dca98b932b16f6a730dbc89e5436.tar.bz2 gentoo-2-ba60b6071730dca98b932b16f6a730dbc89e5436.zip |
set profile if current is the default one
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mailer.eclass | 20 |
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 } |