summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-04-05 23:23:19 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-04-05 23:23:19 (GMT)
commitca74eb78cc11218593b3ef7811704cddd290a190 (patch)
tree0294adb6e20b995670c7001d303e65b03c5a12a0
parent0b9e208590b0ebdf3031c656785cf5248d4b3e8f (diff)
downloadlinhes_pkgbuild-ca74eb78cc11218593b3ef7811704cddd290a190.zip
linhes_pkgbuild-ca74eb78cc11218593b3ef7811704cddd290a190.tar.gz
linhes_pkgbuild-ca74eb78cc11218593b3ef7811704cddd290a190.tar.bz2
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.
-rw-r--r--abs/core-testing/mythtv/stable/mythtv/mythtv.install6
1 files changed, 6 insertions, 0 deletions
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