Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] repoman: Update in_iuse & get_libdir inherit check for EAPI 6
Date: Mon, 16 Nov 2015 16:58:35
Message-Id: 1447693107-8165-1-git-send-email-mgorny@gentoo.org
1 Update the eclass inherit check not to complain about in_iuse and
2 get_libdir in EAPI 6 since they no longer require the respective
3 eclasses.
4 ---
5 pym/repoman/checks/ebuilds/checks.py | 7 ++++++-
6 1 file changed, 6 insertions(+), 1 deletion(-)
7
8 diff --git a/pym/repoman/checks/ebuilds/checks.py b/pym/repoman/checks/ebuilds/checks.py
9 index a00d518..e23fcfe 100644
10 --- a/pym/repoman/checks/ebuilds/checks.py
11 +++ b/pym/repoman/checks/ebuilds/checks.py
12 @@ -524,8 +524,13 @@ class InheritEclass(LineCheck):
13 yield 'no function called from %s.eclass; please drop' % self._eclass
14
15 _usex_supported_eapis = ("0", "1", "2", "3", "4", "4-python", "4-slot-abi")
16 +_in_iuse_supported_eapis = ("0", "1", "2", "3", "4", "4-python", "4-slot-abi",
17 + "5", "5-hdepend", "5-progress")
18 +_get_libdir_supported_eapis = _in_iuse_supported_eapis
19 _eclass_eapi_functions = {
20 - "usex": lambda eapi: eapi not in _usex_supported_eapis
21 + "usex": lambda eapi: eapi not in _usex_supported_eapis,
22 + "in_iuse": lambda eapi: eapi not in _in_iuse_supported_eapis,
23 + "get_libdir": lambda eapi: eapi not in _get_libdir_supported_eapis,
24 }
25
26 # eclasses that export ${ECLASS}_src_(compile|configure|install)
27 --
28 2.6.3

Replies