From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04012138331 for ; Fri, 30 Mar 2018 04:23:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C6BDE0984; Fri, 30 Mar 2018 04:23:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72D4AE0984 for ; Fri, 30 Mar 2018 04:23:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67DD0335D2D for ; Fri, 30 Mar 2018 04:23:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46EC7275 for ; Fri, 30 Mar 2018 04:23:40 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1522381879.efb151d9cb4e37fd0ee4233055f792f7f115bc79.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: repoman/pym/repoman/modules/linechecks/use/ X-VCS-Repository: proj/portage X-VCS-Files: repoman/pym/repoman/modules/linechecks/use/__init__.py repoman/pym/repoman/modules/linechecks/use/builtwith.py X-VCS-Directories: repoman/pym/repoman/modules/linechecks/use/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: efb151d9cb4e37fd0ee4233055f792f7f115bc79 X-VCS-Branch: master Date: Fri, 30 Mar 2018 04:23:40 +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: a97f727a-fd2d-4310-ac0d-510eb1dbfcb4 X-Archives-Hash: 82eaa472c5144daa5bfc501644fe73de Message-ID: <20180330042340.m6PBaWsyXoYNIMJI6wHTOzh3O37knKhGrqBorLMMYYU@z> commit: efb151d9cb4e37fd0ee4233055f792f7f115bc79 Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Mar 30 03:51:19 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=efb151d9 repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 +++++++++++++++++++++ .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++++++++++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 000000000..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 000000000..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'