From ca74eb78cc11218593b3ef7811704cddd290a190 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sun, 5 Apr 2009 16:23:19 -0700
Subject: Copies is.xml and media_settings.xml to /tmp before upgrading. 
 Copies files back to /usr/share/mythtv after upgrading. Should resolve issues
 w/ backup not working.

---
 abs/core-testing/mythtv/stable/mythtv/mythtv.install | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/abs/core-testing/mythtv/stable/mythtv/mythtv.install b/abs/core-testing/mythtv/stable/mythtv/mythtv.install
index 87507a5..e65898b 100644
--- a/abs/core-testing/mythtv/stable/mythtv/mythtv.install
+++ b/abs/core-testing/mythtv/stable/mythtv/mythtv.install
@@ -9,8 +9,14 @@ post_install() {
 
 	fi
 }
+pre_upgrade() {
+	cp /usr/share/mythtv/is.xml /tmp
+	cp /usr/share/mythtv/media_settings.xml /tmp
+}
 
 post_upgrade() {
+	cp /tmp/is.xml /usr/share/mythtv/
+	cp /tmp/media_settings.xml /usr/share/mythtv/
 	if [ ! -d /var/log/mythtv ]
 	then
 		mkdir -p /var/log/mythv
-- 
cgit v0.12