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 B53AA1382C5 for ; Fri, 30 Mar 2018 00:48:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F6E0E0946; Fri, 30 Mar 2018 00:48:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 62FA2E095A for ; Fri, 30 Mar 2018 00:48:57 +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 350D0335D36 for ; Fri, 30 Mar 2018 00:48:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED0B2276 for ; Fri, 30 Mar 2018 00:48:52 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1522370625.a4fa59ec3f38eb1696519f6c627e3bf7270b540b.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman 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: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: a4fa59ec3f38eb1696519f6c627e3bf7270b540b X-VCS-Branch: repoman Date: Fri, 30 Mar 2018 00:48:52 +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: ea086a9a-2e21-42d1-9461-5e5ae6319a07 X-Archives-Hash: 7c56a7997860d30c9f079332ca096d70 commit: a4fa59ec3f38eb1696519f6c627e3bf7270b540b Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Fri Mar 30 00:43:45 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a4fa59ec 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'