From b129706da014f2be2cbaf15258ad7d4e49afb537 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Fri, 2 Jan 2009 13:45:39 -0800 Subject: Cleaned up mythappletrailer.install file. --- abs/extra-testing/mythappletrailers/PKGBUILD | 2 +- abs/extra-testing/mythappletrailers/mythappletrailers.install | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/abs/extra-testing/mythappletrailers/PKGBUILD b/abs/extra-testing/mythappletrailers/PKGBUILD index 6541b25..ec4d701 100644 --- a/abs/extra-testing/mythappletrailers/PKGBUILD +++ b/abs/extra-testing/mythappletrailers/PKGBUILD @@ -3,7 +3,7 @@ pkgname=mythappletrailers pkgver=0.04.3 -pkgrel=10 +pkgrel=12 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." arch=('i686' 'x86_64') license=('GPL2') 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 -- cgit v0.12