diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-05 23:11:22 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-05 23:11:22 +0000 |
commit | 20b7c0c6986885e895e8fe557d3ce7b661eb743d (patch) | |
tree | 8149b21a52578bd25d3e0df31e9a3a56976175c2 | |
parent | 3775750cbe022d2898f3622e844b3796559fb152 (diff) | |
download | portage-20b7c0c6986885e895e8fe557d3ce7b661eb743d.tar.gz portage-20b7c0c6986885e895e8fe557d3ce7b661eb743d.tar.bz2 portage-20b7c0c6986885e895e8fe557d3ce7b661eb743d.zip |
Strip the - prefix from EAPI in getmaskingstatus()
if necessary. (trunk r7975)
svn path=/main/branches/2.1.2/; revision=7976
-rw-r--r-- | pym/portage.py | 2 |
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() |