summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild')
-rw-r--r--media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild
index f4c99db155a0..ea28ac708410 100644
--- a/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild
+++ b/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.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.24_beta22.ebuild,v 1.1 2008/03/18 22:11:59 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-epgsearch/vdr-epgsearch-0.9.24_beta22.ebuild,v 1.2 2008/06/15 07:29:36 zmedico Exp $
inherit vdr-plugin
@@ -42,9 +42,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