diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-06-22 18:21:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-06-22 18:21:56 +0000 |
commit | 69500d28402817fb70c104501b5c8f4f54650f4a (patch) | |
tree | b718c8028eb09ad8e8fb5e1503df58abb502b712 /pym/_emerge/UninstallFailure.py | |
parent | 13d9a8d5f95575c814570cd4e5713541ed022f37 (diff) | |
download | portage-69500d28402817fb70c104501b5c8f4f54650f4a.tar.gz portage-69500d28402817fb70c104501b5c8f4f54650f4a.tar.bz2 portage-69500d28402817fb70c104501b5c8f4f54650f4a.zip |
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 2).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.
svn path=/main/trunk/; revision=13667
Diffstat (limited to 'pym/_emerge/UninstallFailure.py')
-rw-r--r-- | pym/_emerge/UninstallFailure.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pym/_emerge/UninstallFailure.py b/pym/_emerge/UninstallFailure.py new file mode 100644 index 000000000..04866d6cc --- /dev/null +++ b/pym/_emerge/UninstallFailure.py @@ -0,0 +1,18 @@ +try: + import portage +except ImportError: + from os import path as osp + import sys + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) + 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] |