diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-15 10:19:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-15 10:19:03 +0000 |
commit | 47504c2b5b57b42cc2e9f0eb80c37579152cd375 (patch) | |
tree | fe493ce6fe5387d145a32509edd2573b0637dd73 /net-mail/mailgraph/mailgraph-1.14.ebuild | |
parent | Fix building with gcc-4.3, Bug #226375. (diff) | |
download | gentoo-2-47504c2b5b57b42cc2e9f0eb80c37579152cd375.tar.gz gentoo-2-47504c2b5b57b42cc2e9f0eb80c37579152cd375.tar.bz2 gentoo-2-47504c2b5b57b42cc2e9f0eb80c37579152cd375.zip |
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of
pkg_postinst.
(Portage version: 2.2_pre10652/cvs/Linux 2.6.25-0518-x86-64 i686)
Diffstat (limited to 'net-mail/mailgraph/mailgraph-1.14.ebuild')
-rw-r--r-- | net-mail/mailgraph/mailgraph-1.14.ebuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/net-mail/mailgraph/mailgraph-1.14.ebuild b/net-mail/mailgraph/mailgraph-1.14.ebuild index d8cc91445395..771c24c0766e 100644 --- a/net-mail/mailgraph/mailgraph-1.14.ebuild +++ b/net-mail/mailgraph/mailgraph-1.14.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild,v 1.9 2007/12/27 23:50:58 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild,v 1.10 2008/06/15 10:19:03 zmedico Exp $ inherit eutils webapp @@ -86,10 +86,15 @@ src_install() { dodoc README CHANGES } +pkg_preinst() { + has_version "<=${CATEGORY}/${PN}-1.12" + previous_less_or_equal_to_1_12=$? +} + pkg_postinst() { # Fix ownerships - previous versions installed these with # root as owner - if has_version '<=net-mail/mailgraph-1.12' ; then + if [[ $previous_less_or_equal_to_1_12 = 0 ]] ; then if [[ -d /var/lib/mailgraph ]] ; then chown mgraph:mgraph /var/lib/mailgraph fi |