summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-05 23:09:27 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-05 23:09:27 +0000
commit179d087dfe45b9bb2d602cc406b3d39cbd68b9b4 (patch)
treee4aa2d2a25be2f135bbaf251e7e8dfc9c7b24733
parent91d8a0aa5cdec2755ff28eb4d78b40a49b5477fb (diff)
downloadportage-179d087dfe45b9bb2d602cc406b3d39cbd68b9b4.tar.gz
portage-179d087dfe45b9bb2d602cc406b3d39cbd68b9b4.tar.bz2
portage-179d087dfe45b9bb2d602cc406b3d39cbd68b9b4.zip
Strip the - prefix from EAPI in getmaskingstatus()
if necessary. svn path=/main/trunk/; revision=7975
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 608214f0a..505848f7f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5019,6 +5019,8 @@ def getmaskingstatus(mycpv, settings=None, portdb=None):
# The "depend" phase apparently failed for some reason. An associated
# error message will have already been printed to stderr.
return ["corruption"]
+ if eapi.startswith("-"):
+ eapi = eapi[1:]
if not eapi_is_supported(eapi):
return ["required EAPI %s, supported EAPI %s" % (eapi, portage.const.EAPI)]
mygroups = mygroups.split()