repoman: remove IUSE.undefined check
authorZac Medico <zmedico@gentoo.org>
Thu, 9 Aug 2012 01:59:21 +0000 (18:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 9 Aug 2012 01:59:21 +0000 (18:59 -0700)
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

bin/repoman
man/repoman.1
pym/repoman/checks.py

index c5dce0381b7f252cdc7f0145f1fbfdd9568ebf5f..b50fac82c21421e0d84d140df2e47da2f5f4084d 100755 (executable)
@@ -375,7 +375,6 @@ qahelp={
        "LIVEVCS.unmasked":"This ebuild is a live checkout from a VCS but has keywords and is not masked in the global package.mask.",
        "IUSE.invalid":"This ebuild has a variable in IUSE that is not in the use.desc or its metadata.xml file",
        "IUSE.missing":"This ebuild has a USE conditional which references a flag that is not listed in IUSE",
-       "IUSE.undefined":"This ebuild does not define IUSE (style guideline says to define IUSE even when empty)",
        "LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.",
        "KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found",
        "RDEPEND.implicit":"RDEPEND is unset in the ebuild which triggers implicit RDEPEND=$DEPEND assignment (prior to EAPI 4)",
@@ -421,7 +420,6 @@ qawarnings = set((
 "KEYWORDS.dropped",
 "KEYWORDS.stupid",
 "KEYWORDS.missing",
-"IUSE.undefined",
 "PDEPEND.suspect",
 "RDEPEND.implicit",
 "RDEPEND.suspect",
index b8c0f48e39feaef1325ee9d49ff600bac05f8cc1..0ea835a930d6a3917557edb2c2066c9f1de1eac9 100644 (file)
@@ -170,9 +170,6 @@ This ebuild has a variable in IUSE that is not in the use.desc or its metadata.x
 .B IUSE.missing
 This ebuild has a USE conditional which references a flag that is not listed in IUSE
 .TP
-.B IUSE.undefined
-This ebuild does not define IUSE (style guideline says to define IUSE even when empty)
-.TP
 .B KEYWORDS.dropped
 Ebuilds that appear to have dropped KEYWORDS for some arch
 .TP
index ca4c260b18f2abf3458298db2507e76b2fe39c8e..9c076ead4eee334aaa1e4b6e00d6232487cf81cc 100644 (file)
@@ -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,