emerge --sync: support repo arguments
[portage.git] / pym / _emerge / UninstallFailure.py
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 import portage
5
6 class UninstallFailure(portage.exception.PortageException):
7         """
8         An instance of this class is raised by unmerge() when
9         an uninstallation fails.
10         """
11         status = 1
12         def __init__(self, *pargs):
13                 portage.exception.PortageException.__init__(self, pargs)
14                 if pargs:
15                         self.status = pargs[0]