summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index c12f39b09..447759c2b 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4990,6 +4990,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()