client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py | 35 ----------
1 file changed, 35 deletions(-)
New commits:
commit 5c2e088cc665688d056a7c00b57181b7745a2614
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Wed Jun 2 13:48:43 2010 +0200
Remove three more exceptions that are not used in our code base.
RpmInstallError
UnsolvedDependencyError
SkipListError
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
index 6c234aa..ded7ea8 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
@@ -31,18 +31,6 @@ class RpmError(Error):
log.log_me(msg)
return msg
-class RpmInstallError(Error):
- """Raise when a package fails to install properly"""
- def __init__(self, msg, pkg = None):
- self.errmsg = msg
- self.pkg = pkg
- def __repr__(self):
- msg = _("There was a fatal error installing the package:\n")
- msg = msg + self.errmsg
- log = up2dateLog.initLog()
- log.log_me(msg)
- return msg
-
class RhnServerException(Error):
pass
@@ -68,29 +56,6 @@ class DependencyError(Error):
log.log_me(msg)
return msg
-class UnsolvedDependencyError(Error):
- """Raise when we have a dependency that the server can not
find"""
- def __init__(self, msg, dep=None, pkgs=None):
- self.errmsg = msg
- self.dep = dep
- self.pkgs = pkgs
- def __repr__(self):
- msg = _("RPM dependency error. The message was:\n") + self.errmsg
- log = up2dateLog.initLog()
- log.log_me(msg)
- return msg
-
-class SkipListError(Error):
- """Raise when all the packages you want updated are on a skip
list"""
- def __init__(self, msg, pkglist=None):
- self.errmsg = msg
- self.pkglist = pkglist
- def __repr__(self):
- msg = _("Package Skip List error. The message was:\n") + self.errmsg
- log = up2dateLog.initLog()
- log.log_me(msg)
- return msg
-
class CommunicationError(RhnServerException):
"""Indicates a problem doing xml-rpc http communication with the
server"""
Show replies by date