summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-15 10:19:03 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-15 10:19:03 +0000
commit47504c2b5b57b42cc2e9f0eb80c37579152cd375 (patch)
treefe493ce6fe5387d145a32509edd2573b0637dd73 /net-mail/mailgraph
parentFix building with gcc-4.3, Bug #226375. (diff)
downloadgentoo-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')
-rw-r--r--net-mail/mailgraph/ChangeLog7
-rw-r--r--net-mail/mailgraph/mailgraph-1.14.ebuild11
2 files changed, 14 insertions, 4 deletions
diff --git a/net-mail/mailgraph/ChangeLog b/net-mail/mailgraph/ChangeLog
index 81478d7a11cc..b81e73b4b0cc 100644
--- a/net-mail/mailgraph/ChangeLog
+++ b/net-mail/mailgraph/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-mail/mailgraph
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.34 2008/05/14 21:38:13 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.35 2008/06/15 10:19:03 zmedico Exp $
+
+ 15 Jun 2008; Zac Medico <zmedico@gentoo.org> mailgraph-1.14.ebuild:
+ Bug #226505 - For compatibility with phase execution order in
+ >=portage-2.1.5, call has_version inside pkg_preinst instead of
+ pkg_postinst.
14 May 2008; Stefan Briesenick <sbriesen@gentoo.org>
files/mailgraph.initd-new:
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