[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Don't raise NotImplementedError from non-essential backend methods.



---
 pyanaconda/backend.py |   10 ----------
 pyanaconda/livecd.py  |   24 +-----------------------
 2 files changed, 1 insertions(+), 33 deletions(-)

diff --git a/pyanaconda/backend.py b/pyanaconda/backend.py
index 1f4a8b2..65a1de0 100644
--- a/pyanaconda/backend.py
+++ b/pyanaconda/backend.py
@@ -142,35 +142,27 @@ class AnacondaBackend:
 
     def doBackendSetup(self, anaconda):
         log.warning("doBackendSetup not implemented for backend!")
-        raise NotImplementedError
 
     def groupExists(self, group):
         log.warning("groupExists not implemented for backend!")
-        raise NotImplementedError
 
     def selectGroup(self, group, *args):
         log.warning("selectGroup not implemented for backend!")
-        raise NotImplementedError
 
     def deselectGroup(self, group, *args):
         log.warning("deselectGroup not implemented for backend!")
-        raise NotImplementedError
 
     def packageExists(self, pkg):
         log.warning("packageExists not implemented for backend!")
-        raise NotImplementedError
     
     def selectPackage(self, pkg, *args):
         log.warning("selectPackage not implemented for backend!")
-        raise NotImplementedError
 
     def deselectPackage(self, pkg, *args):
         log.warning("deselectPackage not implemented for backend!")
-        raise NotImplementedError
 
     def getDefaultGroups(self, anaconda):
         log.warning("getDefaultGroups not implemented for backend!")
-        raise NotImplementedError
 
     def resetPackageSelections(self):
         # we just leave this one unimplemented if it's not needed
@@ -179,13 +171,11 @@ class AnacondaBackend:
     # write out the %packages section of anaconda-ks.cfg
     def writePackagesKS(self, f, anaconda):
         log.warning("writePackagesKS not implemented for backend!")
-        raise NotImplementedError
 
     # write out any config files that live on the installed system
     # (e.g., /etc/yum.repos.d/* files)
     def writeConfiguration(self):
         log.warning("writeConfig not implemented for backend!")
-        raise NotImplementedError
 
     # write out any other kickstart bits the backend requires - no warning
     # here because this may not be needed
diff --git a/pyanaconda/livecd.py b/pyanaconda/livecd.py
index 2ecd844..c1918a9 100644
--- a/pyanaconda/livecd.py
+++ b/pyanaconda/livecd.py
@@ -333,9 +333,6 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
         for (n, arch, tag) in vers:
             packages.recreateInitrd(n, anaconda.rootPath)
 
-    def writeConfiguration(self):
-        pass
-
     def kernelVersionList(self, rootPath = "/"):
         return packages.rpmKernelVersionList(rootPath)
 
@@ -344,23 +341,4 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
             return self.anaconda.storage.liveImage.format.size
         return 0
 
-    def doBackendSetup(self, anaconda):
-        pass
-
-    # package/group selection doesn't apply for this backend
-    def groupExists(self, group):
-        pass
-    def selectGroup(self, group, *args):
-        pass
-    def deselectGroup(self, group, *args):
-        pass
-    def selectPackage(self, pkg, *args):
-        pass
-    def deselectPackage(self, pkg, *args):
-        pass
-    def packageExists(self, pkg):
-        return True
-    def getDefaultGroups(self, anaconda):
-        return []
-    def writePackagesKS(self, f, anaconda):
-        pass
+
-- 
1.7.3.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]