diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-08-08 18:59:21 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-08-08 18:59:21 -0700 |
commit | f7ec7a4db6543e1fd3a13c341a37ccb667956978 (patch) | |
tree | 4f7bb1df030e5ce22c539ed59ed88dfa3b1fb6a8 /pym | |
parent | e95a07267c7f642fdca2aca346ab4c12f46748bb (diff) | |
download | portage-f7ec7a4db6543e1fd3a13c341a37ccb667956978.tar.gz portage-f7ec7a4db6543e1fd3a13c341a37ccb667956978.tar.bz2 portage-f7ec7a4db6543e1fd3a13c341a37ccb667956978.zip |
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
Diffstat (limited to 'pym')
-rw-r--r-- | pym/repoman/checks.py | 22 |
1 files changed, 1 insertions, 21 deletions
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, |