summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-15 07:29:36 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-15 07:29:36 +0000
commitc9fa01204781962d488da8077255144aa698f8c0 (patch)
tree24e892d18d77315178df574cb8bb954612165af0 /media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild
parentBug #226505 - For compatibility with phase execution order in (diff)
downloadgentoo-2-c9fa01204781962d488da8077255144aa698f8c0.tar.gz
gentoo-2-c9fa01204781962d488da8077255144aa698f8c0.tar.bz2
gentoo-2-c9fa01204781962d488da8077255144aa698f8c0.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-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild')
-rw-r--r--media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild
index 14253ca1616b..a09c0439c950 100644
--- a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild
+++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.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/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild,v 1.3 2008/01/12 12:01:36 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.23.ebuild,v 1.4 2008/06/15 07:29:36 zmedico Exp $
inherit vdr-plugin
@@ -35,9 +35,14 @@ src_install() {
dodoc MANUAL
}
+pkg_preinst() {
+ has_version "<${CATEGORY}/${PN}-0.9.18"
+ previous_less_than_0_9_18=$?
+}
+
pkg_postinst() {
vdr-plugin_pkg_postinst
- if has_version "<media-plugins/vdr-epgsearch-0.9.18"; then
+ if [[ $previous_less_than_0_9_18 = 0 ]] ; then
elog "Moving config-files to new location /etc/vdr/plugins/epgsearch"
cd "${ROOT}"/etc/vdr/plugins
local f