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 | 67d3761bcad5c88186e2d36700289eb3a6322d2b (patch) | |
tree | c5747f94942f318780d5ff3f1f508c2e481d32b9 /eclass/mailer.eclass | |
parent | stable on amd64 wrt #93215 (diff) | |
download | historical-67d3761bcad5c88186e2d36700289eb3a6322d2b.tar.gz historical-67d3761bcad5c88186e2d36700289eb3a6322d2b.tar.bz2 historical-67d3761bcad5c88186e2d36700289eb3a6322d2b.zip |
set profile if current is the default one
Diffstat (limited to 'eclass/mailer.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 } |