summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mythappletrailers/mythappletrailers.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/mythappletrailers/mythappletrailers.install')
-rw-r--r--abs/extra-testing/mythappletrailers/mythappletrailers.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/abs/extra-testing/mythappletrailers/mythappletrailers.install b/abs/extra-testing/mythappletrailers/mythappletrailers.install
index 3c874f8..133390c 100644
--- a/abs/extra-testing/mythappletrailers/mythappletrailers.install
+++ b/abs/extra-testing/mythappletrailers/mythappletrailers.install
@@ -5,11 +5,17 @@ post_install() {
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
+ if [ -e /usr/share/mythtv/appletrailer.xml ]
+ then
+ exit
+ else
ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml
+ fi
}
# arg 1: the old package version
post_remove() {
+ rm -fr /usr/share/mythtv/appletrailer.xml
}
op=$1