summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild')
-rw-r--r--media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild
index 709a59bb04ee..ec72e75a92d8 100644
--- a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild
+++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.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/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild,v 1.4 2008/01/12 11:57:34 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.22.ebuild,v 1.5 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