diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-15 06:11:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-15 06:11:14 +0000 |
commit | fce9c7a2297c36df0d95a96c3cb312c109a39cf7 (patch) | |
tree | 02f20f09a181ef79f0b5837ab9490a15bc1db4bf /app-pda/libopensync | |
parent | Bug #226505 - For compatibility with phase execution order in (diff) | |
download | gentoo-2-fce9c7a2297c36df0d95a96c3cb312c109a39cf7.tar.gz gentoo-2-fce9c7a2297c36df0d95a96c3cb312c109a39cf7.tar.bz2 gentoo-2-fce9c7a2297c36df0d95a96c3cb312c109a39cf7.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 'app-pda/libopensync')
-rw-r--r-- | app-pda/libopensync/ChangeLog | 7 | ||||
-rw-r--r-- | app-pda/libopensync/libopensync-0.22.ebuild | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/app-pda/libopensync/ChangeLog b/app-pda/libopensync/ChangeLog index 3e9f469cb2df..98dfc2b6a541 100644 --- a/app-pda/libopensync/ChangeLog +++ b/app-pda/libopensync/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-pda/libopensync # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/ChangeLog,v 1.26 2008/04/20 17:07:42 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/ChangeLog,v 1.27 2008/06/15 06:11:14 zmedico Exp $ + + 15 Jun 2008; Zac Medico <zmedico@gentoo.org> libopensync-0.22.ebuild: + Bug #226505 - For compatibility with phase execution order in + >=portage-2.1.5, call has_version inside pkg_preinst instead of + pkg_postinst. 20 Apr 2008; Diego Pettenò <flameeyes@gentoo.org> libopensync-0.36.ebuild, libopensync-9999.ebuild: diff --git a/app-pda/libopensync/libopensync-0.22.ebuild b/app-pda/libopensync/libopensync-0.22.ebuild index c35cde1542d5..54f0a1802919 100644 --- a/app-pda/libopensync/libopensync-0.22.ebuild +++ b/app-pda/libopensync/libopensync-0.22.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.22.ebuild,v 1.15 2008/03/02 17:34:47 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.22.ebuild,v 1.16 2008/06/15 06:11:14 zmedico Exp $ inherit eutils @@ -56,12 +56,17 @@ src_install() { use doc && dohtml docs/html/* } +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.21" + previous_less_than_0_21=$? +} + pkg_postinst() { elog "Building with 'debug' useflag is highly encouraged" elog "and requiered for bug reports." elog "Also see http://www.opensync.org/wiki/tracing" - if has_version '<app-pda/libopensync-0.21'; then + if [[ $previous_less_than_0_21 = 0 ]] ; then echo "" elog "You are updating from version prior to 0.21 and hence you need to rebuild your db." elog "How: http://www.opensync.org/wiki/FAQ#HowdoIcleanupasyncgroupfortesting" |