From f7ec7a4db6543e1fd3a13c341a37ccb667956978 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Aug 2012 18:59:21 -0700 Subject: repoman: remove IUSE.undefined check This was suggested in the "Don't require assignment of empty variables in ebuilds?" thread on the gentoo-dev mailing list: http://thread.gmane.org/gmane.linux.gentoo.devel/78806 --- pym/repoman/checks.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'pym/repoman') diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index ca4c260b1..9c076ead4 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -640,26 +640,6 @@ if not _ENABLE_INHERIT_CHECK: } } -class IUseUndefined(LineCheck): - """ - Make sure the ebuild defines IUSE (style guideline - says to define IUSE even when empty). - """ - - repoman_check_name = 'IUSE.undefined' - _iuse_def_re = re.compile(r'^IUSE=.*') - - def new(self, pkg): - self._iuse_def = None - - def check(self, num, line): - if self._iuse_def is None: - self._iuse_def = self._iuse_def_re.match(line) - - def end(self): - if self._iuse_def is None: - yield 'IUSE is not defined' - class EMakeParallelDisabled(PhaseCheck): """Check for emake -j1 calls which disable parallelization.""" repoman_check_name = 'upstream.workaround' @@ -818,7 +798,7 @@ _constant_checks = tuple(chain((c() for c in ( EbuildAssignment, Eapi3EbuildAssignment, EbuildUselessDodoc, EbuildUselessCdS, EbuildNestedDie, EbuildPatches, EbuildQuotedA, EapiDefinition, - ImplicitRuntimeDeps, IUseUndefined, + ImplicitRuntimeDeps, EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded, DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, SrcCompileEconf, Eapi3DeprecatedFuncs, NoOffsetWithHelpers, -- cgit v1.2.3-1-g7c22