[yum-cvs] yum/Errors.py
Tim Lauridsen
timlau at linux.duke.edu
Tue Aug 21 13:43:56 UTC 2007
yum/Errors.py | 63 ++++++++++++++++------------------------------------------
1 file changed, 18 insertions(+), 45 deletions(-)
New commits:
commit d1af59a504eb552b33e1e236dfb199bd5bee10ec
Author: Tim Lauridsen <tla at rasmil.dk>
Date: Tue Aug 21 15:42:21 2007 +0200
Remove duplicate code in Errors.py
diff --git a/yum/Errors.py b/yum/Errors.py
index a2aed82..f5bf230 100644
--- a/yum/Errors.py
+++ b/yum/Errors.py
@@ -45,74 +45,47 @@ class LockError(YumBaseError):
self.msg = msg
class DepError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
-
+ pass
+
class RepoError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class DuplicateRepoError(RepoError):
- def __init__(self, value=None):
- RepoError.__init__(self)
- self.value = value
+ pass
class NoMoreMirrorsRepoError(RepoError):
- def __init__(self, value=None):
- RepoError.__init__(self)
- self.value = value
-
+ pass
+
class ConfigError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class MiscError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class GroupsError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class InstallError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class UpdateError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
-
+ pass
+
class RemoveError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class RepoMDError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class PackageSackError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class CompsException(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self)
- self.value = value
+ pass
class MediaError(YumBaseError):
- def __init__(self, value=None):
- YumBaseError.__init__(self, value)
-
+ pass
+
class YumDeprecationWarning(DeprecationWarning):
def __init__(self, value=None):
DeprecationWarning.__init__(self, value)
More information about the Yum-cvs-commits
mailing list