summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/mythtv/stable-0.25/mythtv/mythtv.install30
1 files changed, 3 insertions, 27 deletions
diff --git a/abs/core/mythtv/stable-0.25/mythtv/mythtv.install b/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
index 3f2e304..58b669f 100644
--- a/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
+++ b/abs/core/mythtv/stable-0.25/mythtv/mythtv.install
@@ -1,38 +1,14 @@
# arg 1: the new package version
post_install() {
- if [ ! -d /var/log/mythtv ]
- then
- mkdir -p /var/log/mythv
- chown -R mythtv /var/log/mythtv
- echo "---" > /var/log/mythtv/mythbackend.log
- chown mythtv /var/log/mythtv/mythbackend.log
- fi
- ln -s /usr/share/mythtv/themes/defaultmenu/is.xml /usr/share/mythtv/is.xml
+ gen_is_xml.py
}
pre_upgrade() {
- if [ ! -L /usr/share/mythtv/is.xml ]
- then
- mv /usr/share/mythtv/is.xml /usr/share/mythtv/is.xml.pre
- else
- mv /usr/share/mythtv/themes/defaultmenu/is.xml /usr/share/mythtv/themes/defaultmenu/is.xml.pre
- fi
+ /bin/true
}
post_upgrade() {
- if [ ! -d /var/log/mythtv ]
- then
- mkdir -p /var/log/mythv
- chown -R mythtv /var/log/mythtv
- fi
- if [ -e /usr/share/mythtv/is.xml.pre ]
- then
- rm -fr /usr/share/mythtv/themes/defaultmenu/is.xml
- mv /usr/share/mythtv/is.xml.pre /usr/share/mythtv/themes/defaultmenu/is.xml
- ln -s /usr/share/mythtv/themes/defaultmenu/is.xml /usr/share/mythtv/is.xml
- else
- mv /usr/share/mythtv/themes/defaultmenu/is.xml.pre /usr/share/mythtv/themes/defaultmenu/is.xml
- fi
+ gen_is_xml.py
pacxmbc=`pacman -Q xbmc`
if [ -z "$pacxbmc" ]
then