From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qf5G4-0004pH-NZ for garchives@archives.gentoo.org; Fri, 08 Jul 2011 07:13:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B9C021C0C0; Fri, 8 Jul 2011 07:13:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1E21A21C0C0 for ; Fri, 8 Jul 2011 07:13:45 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7495F2AC0C4 for ; Fri, 8 Jul 2011 07:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CABE78003D for ; Fri, 8 Jul 2011 07:13:43 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/checks.py pym/repoman/errors.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: de32b0d92ee28965c137bea637cddf6d8c0679c2 Date: Fri, 8 Jul 2011 07:13:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 16ac4be727c163ab5cc1780c496dd831 commit: de32b0d92ee28965c137bea637cddf6d8c0679c2 Author: Dane Smith gentoo org> AuthorDate: Fri Jul 8 07:12:33 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Jul 8 07:12:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dde32b0d9 repoman: check for deprecated useq and hasq calls --- pym/repoman/checks.py | 15 ++++++++++++++- pym/repoman/errors.py | 2 ++ 2 files changed, 16 insertions(+), 1 deletions(-) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index c9ada5f..fabf0b3 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -586,6 +586,18 @@ class BuiltWithUse(LineCheck): re =3D re.compile('^.*built_with_use') error =3D errors.BUILT_WITH_USE =20 +class DeprecatedUseq(LineCheck): + """Checks for use of the deprecated useq function""" + repoman_check_name =3D 'ebuild.minorsyn' + re =3D re.compile('^.*useq') + error =3D errors.USEQ_ERROR + +class DeprecatedHasq(LineCheck): + """Checks for use of the deprecated hasq function""" + repoman_check_name =3D 'ebuild.minorsyn' + re =3D re.compile('^.*hasq') + error =3D errors.HASQ_ERROR + # EAPI-3 checks class Eapi3DeprecatedFuncs(LineCheck): repoman_check_name =3D 'EAPI.deprecated' @@ -651,7 +663,8 @@ _constant_checks =3D tuple((c() for c in ( DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, SrcCompileEconf, Eapi3DeprecatedFuncs, NoOffsetWithHelpers, Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse, - PreserveOldLib, SandboxAddpredict, PortageInternal))) + PreserveOldLib, SandboxAddpredict, PortageInternal, + DeprecatedUseq, DeprecatedHasq))) =20 _here_doc_re =3D re.compile(r'.*\s<<[-]?(\w+)$') =20 diff --git a/pym/repoman/errors.py b/pym/repoman/errors.py index a19e8c5..3209243 100644 --- a/pym/repoman/errors.py +++ b/pym/repoman/errors.py @@ -22,3 +22,5 @@ BUILT_WITH_USE =3D 'built_with_use on line: %d' EPREFIXIFY_MISSING_INHERIT =3D "prefix.eclass is not inherited, but epre= fixify is used on line: %d" NO_OFFSET_WITH_HELPERS =3D "Helper function is used with D, ROOT, ED, ER= OOT or EPREFIX on line :%d" SANDBOX_ADDPREDICT =3D 'Ebuild calls addpredict on line: %d' +USEQ_ERROR =3D 'Ebuild calls deprecated useq function on line: %d' +HASQ_ERROR =3D 'Ebuild calls deprecated hasq function on line: %d'