commit:     c0ee8623da8dc54b5d4c76e7db87acf24f089ff9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 16 16:57:27 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 16 16:57:58 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=c0ee8623

repoman: Update in_iuse & get_libdir inherit check for EAPI 6

Update the eclass inherit check not to complain about in_iuse and
get_libdir in EAPI 6 since they no longer require the respective
eclasses.

 pym/repoman/checks/ebuilds/checks.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pym/repoman/checks/ebuilds/checks.py 
b/pym/repoman/checks/ebuilds/checks.py
index a00d518..e23fcfe 100644
--- a/pym/repoman/checks/ebuilds/checks.py
+++ b/pym/repoman/checks/ebuilds/checks.py
@@ -524,8 +524,13 @@ class InheritEclass(LineCheck):
                        yield 'no function called from %s.eclass; please drop' 
% self._eclass
 
 _usex_supported_eapis = ("0", "1", "2", "3", "4", "4-python", "4-slot-abi")
+_in_iuse_supported_eapis = ("0", "1", "2", "3", "4", "4-python", "4-slot-abi",
+               "5", "5-hdepend", "5-progress")
+_get_libdir_supported_eapis = _in_iuse_supported_eapis
 _eclass_eapi_functions = {
-       "usex": lambda eapi: eapi not in _usex_supported_eapis
+       "usex": lambda eapi: eapi not in _usex_supported_eapis,
+       "in_iuse": lambda eapi: eapi not in _in_iuse_supported_eapis,
+       "get_libdir": lambda eapi: eapi not in _get_libdir_supported_eapis,
 }
 
 # eclasses that export ${ECLASS}_src_(compile|configure|install)

Reply via email to