From 768773a2f3c0d188ee8b697a26880078dbd784f2 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 10 Oct 2011 18:48:22 -0500 Subject: mythtv: add Cancel Updates menu and simplify update menus --- abs/core/mythtv/stable-0.24/mythtv/PKGBUILD | 2 +- abs/core/mythtv/stable-0.24/mythtv/menu-xml/update.xml | 15 ++------------- abs/core/mythtv/stable-0.24/mythtv/menu-xml/update2.xml | 12 +++--------- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD index b79cb66..cf504eb 100755 --- a/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD +++ b/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD @@ -6,7 +6,7 @@ pkgname=mythtv pkgver=0.24 -pkgrel=23 +pkgrel=24 pkgdesc="A Homebrew PVR project" arch=('i686' 'x86_64') url="http://www.mythtv.org/" diff --git a/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update.xml b/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update.xml index 5b28833..d2ac3fe 100644 --- a/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update.xml +++ b/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update.xml @@ -2,19 +2,8 @@ - - - - + diff --git a/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update2.xml b/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update2.xml index e4a443d..64388cb 100644 --- a/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update2.xml +++ b/abs/core/mythtv/stable-0.24/mythtv/menu-xml/update2.xml @@ -2,21 +2,15 @@ - - " >> /tmp/linhes.xml.tmp -echo "" >> /tmp/linhes.xml.tmp -echo "" >> /tmp/linhes.xml.tmp -echo "" >> /tmp/linhes.xml.tmp -mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml + killall -9 osd_cat + echo -e "\nUpdates canceled." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & + echo -e "\nUpdates canceled." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & +fi + rm -fr /tmp/to_be_upgraded -killall -9 osd_cat -echo -e "\nUpdate complete." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & -echo -e "\nUpdate complete." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & + +if grep -q Updates\ Available /usr/share/mythtv/themes/defaultmenu/linhes.xml +then + mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp/linhes.xml.tmp + sed -e '/\#UpdatesAv/,/\#UpdatesAv/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/themes/defaultmenu/linhes.xml + mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp + grep -v -e /mythmenu /tmp/linhes.xml > /tmp/linhes.xml.tmp + echo "" >> /tmp/linhes.xml.tmp + echo " " >> /tmp/linhes.xml.tmp + echo "" >> /tmp/linhes.xml.tmp + echo "" >> /tmp/linhes.xml.tmp + echo "" >> /tmp/linhes.xml.tmp + mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml fi -- cgit v0.12