diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-15 08:29:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-15 08:29:59 +0000 |
commit | 2317e8e69284384d0fb2b482f8e82046552ba139 (patch) | |
tree | d29b4228f69c3bf280647273f87bbfe8a3683b20 /media-tv/vdrplugin-rebuild | |
parent | Bug #226505 - For compatibility with phase execution order in (diff) | |
download | gentoo-2-2317e8e69284384d0fb2b482f8e82046552ba139.tar.gz gentoo-2-2317e8e69284384d0fb2b482f8e82046552ba139.tar.bz2 gentoo-2-2317e8e69284384d0fb2b482f8e82046552ba139.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 'media-tv/vdrplugin-rebuild')
-rw-r--r-- | media-tv/vdrplugin-rebuild/ChangeLog | 9 | ||||
-rw-r--r-- | media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild | 11 |
2 files changed, 15 insertions, 5 deletions
diff --git a/media-tv/vdrplugin-rebuild/ChangeLog b/media-tv/vdrplugin-rebuild/ChangeLog index 3e0ab3ecbccd..6ba2c38e4830 100644 --- a/media-tv/vdrplugin-rebuild/ChangeLog +++ b/media-tv/vdrplugin-rebuild/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-tv/vdrplugin-rebuild -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/ChangeLog,v 1.15 2007/11/27 10:40:52 zzam Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/ChangeLog,v 1.16 2008/06/15 08:29:59 zmedico Exp $ + + 15 Jun 2008; Zac Medico <zmedico@gentoo.org> vdrplugin-rebuild-0.2.ebuild: + Bug #226505 - For compatibility with phase execution order in + >=portage-2.1.5, call has_version inside pkg_preinst instead of + pkg_postinst. 27 Nov 2007; Matthias Schwarzott <zzam@gentoo.org> vdrplugin-rebuild-0.2.ebuild: diff --git a/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild b/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild index 8c7ac62e08fd..96832ae26309 100644 --- a/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild +++ b/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.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/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild,v 1.6 2007/11/27 10:40:52 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild,v 1.7 2008/06/15 08:29:59 zmedico Exp $ DESCRIPTION="A utility to rebuild any plugins for vdr which you have installed." HOMEPAGE="http://www.gentoo.org/" @@ -18,8 +18,13 @@ src_install() { keepdir /usr/share/vdr/vdrplugin-rebuild } +pkg_preinst() { + has_version "<=${CATEGORY}/${PN}-0.1" + previous_less_or_equal_to_0_1=$? +} + pkg_postinst() { - if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then + if [[ $previous_less_or_equal_to_0_1 = 0 ]] ; then # populate new database "${ROOT}"/usr/sbin/vdrplugin-rebuild populate |