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 2B3B6138247 for ; Thu, 16 Jan 2014 00:08:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE1C2E0AF8; Thu, 16 Jan 2014 00:08:28 +0000 (UTC) Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) by pigeon.gentoo.org (Postfix) with ESMTP id D7458E09EB for ; Thu, 16 Jan 2014 00:08:27 +0000 (UTC) Received: from localhost.localdomain ([94.226.55.127]) by michel.telenet-ops.be with bizsmtp id EQ8S1n02b2khLEN06Q8TYa; Thu, 16 Jan 2014 01:08:27 +0100 From: Tom Wijsman To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH 3/3] Have repoman deprecate G2CONF for the GNOME team. (bug #482084). Date: Thu, 16 Jan 2014 01:07:20 +0100 Message-Id: <1389830840-25848-4-git-send-email-tomwij@gentoo.org> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389830840-25848-1-git-send-email-tomwij@gentoo.org> References: <1389830840-25848-1-git-send-email-tomwij@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 743f489a-6689-4f32-a870-102010efc4fa X-Archives-Hash: 49e742b2d8e36378aed331226c3398bc --- bin/repoman | 2 ++ man/repoman.1 | 3 +++ pym/repoman/checks.py | 10 ++++++++++ 3 files changed, 15 insertions(+) diff --git a/bin/repoman b/bin/repoman index 3263ceb..6754edd 100755 --- a/bin/repoman +++ b/bin/repoman @@ -318,6 +318,7 @@ qahelp = { "EAPI.incompatible": "Ebuilds that use features that are only available with a different EAPI", "EAPI.unsupported": "Ebuilds that have an unsupported EAPI version (you must upgrade portage)", "SLOT.invalid": "Ebuilds that have a missing or invalid SLOT variable value", + "G2CONF.deprecated": "G2CONF is deprecated, see Gentoo bug #482084 and the GNOME team policies", "HOMEPAGE.missing": "Ebuilds that have a missing or empty HOMEPAGE variable", "HOMEPAGE.virtual": "Virtuals that have a non-empty HOMEPAGE variable", "PDEPEND.suspect": "PDEPEND contains a package that usually only belongs in DEPEND.", @@ -382,6 +383,7 @@ qawarnings = set(( "dependency.badtilde", "DESCRIPTION.toolong", "EAPI.deprecated", +"G2CONF.deprecated", "HOMEPAGE.virtual", "LICENSE.deprecated", "LICENSE.virtual", diff --git a/man/repoman.1 b/man/repoman.1 index 2bf3765..7ec43d5 100644 --- a/man/repoman.1 +++ b/man/repoman.1 @@ -227,6 +227,9 @@ Syntax error in RESTRICT (usually an extra/missing space/parenthesis) .B SLOT.invalid Ebuilds that have a missing or invalid SLOT variable value .TP +.B G2CONF.deprecated +G2CONF is deprecated, see Gentoo bug #482084 and the GNOME team policies +.TP .B SRC_URI.mirror A uri listed in profiles/thirdpartymirrors is found in SRC_URI .TP diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 85aa065..c2608b0 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -799,6 +799,16 @@ class PortageInternalVariableAssignment(LineCheck): e += ' on line: %d' return e +class DeprecateG2CONF(LineCheck): + repoman_check_name = 'G2CONF.deprecated' + re = re.compile(r'.*G2CONF.*') + + def check(self, num, line): + """Run the check on line and return error if there is one""" + m = self.re.match(line) + if m is not None: + return ("G2CONF on line %d is deprecated, see Gentoo bug #482084.") + _base_check_classes = (InheritEclass, LineCheck, PhaseCheck) _constant_checks = None -- 1.8.5.2