summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-04 15:17:28 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-04 15:17:28 +0000
commit106bf8862dd5e5e8f735ad21c4a3ceda0e83b825 (patch)
treeccd10a1529efa93d80cfbf63c294d82a64413d91 /pym/portage_exception.py
parentdon't declare -r the contents, declare -r the var name. (diff)
downloadportage-multirepo-106bf8862dd5e5e8f735ad21c4a3ceda0e83b825.tar.gz
portage-multirepo-106bf8862dd5e5e8f735ad21c4a3ceda0e83b825.tar.bz2
portage-multirepo-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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py
index 52c1360f..54127beb 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)