diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-11-17 09:31:53 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-11-17 09:31:53 -0800 |
commit | 8f23cb8f32f8499575dc0629a8a83ddcf963d3c8 (patch) | |
tree | a0396be6a6ab2a8fd2cc3b2358d5fea416006f7f /pym/repoman/checks.py | |
parent | 77a965a9890f196b0a35c8e3e6b6aeafd3554327 (diff) | |
download | portage-8f23cb8f32f8499575dc0629a8a83ddcf963d3c8.tar.gz portage-8f23cb8f32f8499575dc0629a8a83ddcf963d3c8.tar.bz2 portage-8f23cb8f32f8499575dc0629a8a83ddcf963d3c8.zip |
Add Package.eapi property.
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r-- | pym/repoman/checks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 240f2498a..8b80214ef 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -288,7 +288,7 @@ class EapiDefinition(LineCheck): _eapi_re = portage._pms_eapi_re def new(self, pkg): - self._cached_eapi = pkg.metadata['EAPI'] + self._cached_eapi = pkg.eapi self._parsed_eapi = None self._eapi_line_num = None @@ -879,7 +879,7 @@ def run_checks(contents, pkg): for lc in checks: if is_comment and lc.ignore_comment: continue - if lc.check_eapi(pkg.metadata['EAPI']): + if lc.check_eapi(pkg.eapi): ignore = lc.ignore_line if not ignore or not ignore.match(line): e = lc.check(num, line) |