diff options
Diffstat (limited to 'portage_with_autodep/pym/_emerge/UninstallFailure.py')
-rw-r--r-- | portage_with_autodep/pym/_emerge/UninstallFailure.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/portage_with_autodep/pym/_emerge/UninstallFailure.py b/portage_with_autodep/pym/_emerge/UninstallFailure.py new file mode 100644 index 0000000..e4f2834 --- /dev/null +++ b/portage_with_autodep/pym/_emerge/UninstallFailure.py @@ -0,0 +1,15 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +import portage + +class UninstallFailure(portage.exception.PortageException): + """ + An instance of this class is raised by unmerge() when + an uninstallation fails. + """ + status = 1 + def __init__(self, *pargs): + portage.exception.PortageException.__init__(self, pargs) + if pargs: + self.status = pargs[0] |