diff options
author | Jason Stubbs <jstubbs@gentoo.org> | 2005-10-04 15:17:28 +0000 |
---|---|---|
committer | Jason Stubbs <jstubbs@gentoo.org> | 2005-10-04 15:17:28 +0000 |
commit | 106bf8862dd5e5e8f735ad21c4a3ceda0e83b825 (patch) | |
tree | ccd10a1529efa93d80cfbf63c294d82a64413d91 /pym/portage_exception.py | |
parent | 3c305f6e2579a2cb855f4b47c1efb7ccf9a92ef9 (diff) | |
download | portage-106bf8862dd5e5e8f735ad21c4a3ceda0e83b825.tar.gz portage-106bf8862dd5e5e8f735ad21c4a3ceda0e83b825.tar.bz2 portage-106bf8862dd5e5e8f735ad21c4a3ceda0e83b825.zip |
Removed the translation of aux_get exceptions to unsupported eapi exceptions in doebuild (which led to a whole lotta changes regarding str vs
int and unlikely yet possible compatibility stuff)
svn path=/main/branches/2.0/; revision=2086
Diffstat (limited to 'pym/portage_exception.py')
-rw-r--r-- | pym/portage_exception.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py index 52c1360f6..54127beb4 100644 --- a/pym/portage_exception.py +++ b/pym/portage_exception.py @@ -123,6 +123,13 @@ class InvalidPackageName(PortagePackageException): def __str__(self): return repr(self.value) +class UnsupportedAPIException(PortagePackageException): + """Unsupported API""" + def __init__(self, cpv, api): + self.cpv = cpv + self.api = api + def __str__(self): + return "Unable to do any operations on '%s', due to the fact it's EAPI is higher then this portage versions. Please upgrade to a portage version that supports EAPI %s" % (self.cpv, self.eapi) |