From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8CB611381F3 for ; Thu, 22 Nov 2012 21:51:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50BCFE0521; Thu, 22 Nov 2012 21:51:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9D48E0521 for ; Thu, 22 Nov 2012 21:51:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B7B0433D89E for ; Thu, 22 Nov 2012 21:51:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 217CCE5436 for ; Thu, 22 Nov 2012 21:51:09 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <1353620937.81d6536d096154ce0d1ffd0e02849d35a2610578.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/checks.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: 81d6536d096154ce0d1ffd0e02849d35a2610578 X-VCS-Branch: master Date: Thu, 22 Nov 2012 21:51:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a251693b-2f4f-4f63-b5ec-688e7f3ba0ad X-Archives-Hash: 88e38a7d69310d1a7097f6bd364555b4 commit: 81d6536d096154ce0d1ffd0e02849d35a2610578 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Thu Nov 22 21:48:57 2012 +0000 Commit: Arfrever Frehtes Taifersar Arahesis gmail com> CommitDate: Thu Nov 22 21:48:57 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=81d6536d Automatically generate list of repoman checks. This also reenables InheritDeprecated check, which has been disabled in commit 597826a1cabf654f9b3fff88425d04303e921577. --- pym/repoman/checks.py | 16 +++------------- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 8b80214..fe9330c 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -798,19 +798,9 @@ class PortageInternalVariableAssignment(LineCheck): e = 'Assignment to variable %s' % match.group(2) e += ' on line: %d' return e - -_constant_checks = tuple(chain((c() for c in ( - EbuildHeader, EbuildWhitespace, EbuildBlankLine, EbuildQuote, - EbuildAssignment, Eapi3EbuildAssignment, EbuildUselessDodoc, - EbuildUselessCdS, EbuildNestedDie, - EbuildPatches, EbuildQuotedA, EapiDefinition, - ImplicitRuntimeDeps, - EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded, - DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, - SrcCompileEconf, Eapi3DeprecatedFuncs, NoOffsetWithHelpers, - Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse, - PreserveOldLib, SandboxAddpredict, PortageInternal, - PortageInternalVariableAssignment, DeprecatedUseq, DeprecatedHasq)), +_base_check_classes = (InheritEclass, LineCheck, PhaseCheck) +_constant_checks = tuple(chain((v() for k, v in globals().items() + if isinstance(v, type) and issubclass(v, LineCheck) and v not in _base_check_classes), (InheritEclass(k, **kwargs) for k, kwargs in _eclass_info.items()))) _here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')