From 5eb59c7549991d6adef9bfa0f2f6bd93d1406906 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 27 Jan 2013 22:31:22 +0100 Subject: [PATCH] handle CDDB import errors --- morituri/common/deps.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/morituri/common/deps.py b/morituri/common/deps.py index cd85d8d..5cc1efa 100644 --- a/morituri/common/deps.py +++ b/morituri/common/deps.py @@ -13,6 +13,7 @@ class DepsHandler(deps.DepsHandler): deps.DepsHandler.__init__(self, name) self.add(GStPython()) + self.add(CDDB()) def report(self, summary): reporter = os.environ.get('EMAIL_ADDRESS', None) @@ -32,3 +33,12 @@ class GStPython(deps.Dependency): #def Ubuntu_install(self, distro): # pass + + +class CDDB(deps.Dependency): + module = 'CDDB' + name = "python-CDDB" + homepage = "http://cddb-py.sourceforge.net/" + + def Fedora_install(self, distro): + return self.Fedora_yum('python-CDDB')