From 40d1d5b23e5c05923f49030e9e1671c506e6bc6b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 4 Oct 2007 02:56:00 +0000 Subject: Fix UnsupportedAPIException.__str__() to strip the leading negative sign (-) from the EAPI, to prevent confusion. svn path=/main/trunk/; revision=7912 --- pym/portage/exception.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pym/portage/exception.py') diff --git a/pym/portage/exception.py b/pym/portage/exception.py index 3d590a563..7802b8016 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -80,7 +80,11 @@ class UnsupportedAPIException(PortagePackageException): 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) + msg = ("Unable to do any operations on '%s', since " + \ + "it's EAPI is higher than this portage version's. Please upgrade" + \ + " to a portage version that supports EAPI '%s'.") % \ + (self.cpv, str(self.eapi).lstrip("-")) + return msg -- cgit v1.2.3-1-g7c22