From 1f99f4fab216bf9e580c70dd80a591ab3b908dfb Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 20 Aug 2009 19:52:16 -0500 Subject: linhes-config: update mv_software.py for postfix --- abs/core-testing/LinHES-config/mv_software.py | 38 ++++++++++++++++++++------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/abs/core-testing/LinHES-config/mv_software.py b/abs/core-testing/LinHES-config/mv_software.py index e5b96b2..7421e08 100755 --- a/abs/core-testing/LinHES-config/mv_software.py +++ b/abs/core-testing/LinHES-config/mv_software.py @@ -4,29 +4,47 @@ import os, re def setup_software(systemconfig, data_config): logging.info("____Start of Software install____") - default_disabled = ("mythphone", "mytharchive", "mythbrowser", "mythnews", - "mythgame", "mythflix", "mythweather", - "mythappletrailers", "mythstream", "mythvodka") + postfix='' + if data_config.SYSTEMTYPE == "MythVantage": + #look for the installed prefix + cmd="pacman -Q mythtv-release-fixes" + rc = mv_common.runcmd(cmd) + if rc == 0: + postfix = "-release-fixes" + else: + postfix = "-svn" - default_installed=("mythcontrols", "mythgallery", "mythmovies", - "mythmusic", "mythsmolt", "mythvideo") - other_pkg=("miro", "xe", "romdb", "xine", "dvdcss", "webmin" , "fuppes") + default_disabled = ("mythphone", "mytharchive", "mythbrowser", "mythnews", + "mythgame", "mythflix", "mythweather" ) + + default_installed=("mythcontrols", "mythgallery", "mythmovies", + "mythmusic", "mythsmolt", "mythvideo") + other_pkg=("miro", "xe", "romdb", "xine", "dvdcss", "webmin" , "fuppes", "mythappletrailers", "mythstream", "mythvodka") + else: + default_disabled = ("mythphone", "mytharchive", "mythbrowser", "mythnews", + "mythgame", "mythflix", "mythweather", + "mythappletrailers", "mythstream", "mythvodka") + + default_installed=("mythcontrols", "mythgallery", "mythmovies", + "mythmusic", "mythsmolt", "mythvideo") + other_pkg=("miro", "xe", "romdb", "xine", "dvdcss", "webmin" , "fuppes") for pkg in default_disabled: + pkgname=pkg+postfix try: if systemconfig[pkg] == "1": - mv_common.pacinstall(pkg) + mv_common.pacinstall(pkgname) else: - mv_common.pacremove(pkg) + mv_common.pacremove(pkgname) except: logging.debug(" ERROR-- %s is not defined", pkg) for pkg in default_installed: try: if systemconfig[pkg] == "0": - mv_common.pacremove(pkg) + mv_common.pacremove(pkgname) else: - mv_common.pacinstall(pkg) + mv_common.pacinstall(pkgname) except: logging.debug(" ERROR-- %s is not defined", pkg) -- cgit v0.12