Skip to content

Commit

Permalink
ebuild/processor: make EAPI helper path determination more generic
Browse files Browse the repository at this point in the history
So we don't assume EAPIs are numeric in nature.
  • Loading branch information
radhermit committed Feb 6, 2016
1 parent b15eb56 commit 7effd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgcore/ebuild/processor.py
Expand Up @@ -920,7 +920,7 @@ def expected_ebuild_env(pkg, d=None, env_source_override=None, depends=False):

if not depends:
path = list(const.PATH_FORCED_PREPEND)
for eapi in xrange(pkg.eapi, -1, -1):
for eapi in pkg.eapi_obj.inherits:
eapi_helper_dir = pjoin(e_const.EBUILD_HELPERS_PATH, str(eapi))
if os.path.exists(eapi_helper_dir):
path.append(eapi_helper_dir)
Expand Down

0 comments on commit 7effd19

Please sign in to comment.