summaryrefslogtreecommitdiffstats
path: root/pym/portage_exception.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-21 22:14:58 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-21 22:14:58 +0000
commit01db74cf9776abfb86918d633d77c1bad5040b27 (patch)
tree64e0fcdd9f497f9963679f868ab5baae65a8824a /pym/portage_exception.py
parent4e8057eb9ec2d9df16b3a6d77ab8d3af43c13c67 (diff)
downloadportage-01db74cf9776abfb86918d633d77c1bad5040b27.tar.gz
portage-01db74cf9776abfb86918d633d77c1bad5040b27.tar.bz2
portage-01db74cf9776abfb86918d633d77c1bad5040b27.zip
For bug #163083, handle an UnsupportedAPIException thrown from the prerm phase.
svn path=/main/trunk/; revision=5749
Diffstat (limited to 'pym/portage_exception.py')
-rw-r--r--pym/portage_exception.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py
index 76f2be20a..4be72cf96 100644
--- a/pym/portage_exception.py
+++ b/pym/portage_exception.py
@@ -76,8 +76,8 @@ class InvalidAtom(PortagePackageException):
class UnsupportedAPIException(PortagePackageException):
"""Unsupported API"""
- def __init__(self, cpv, api):
- self.cpv, self.api = cpv, api
+ def __init__(self, cpv, eapi):
+ self.cpv, self.eapi = cpv, eapi
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)