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 5AF8F58973 for ; Wed, 20 Jan 2016 23:53:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62A7121C01E; Wed, 20 Jan 2016 23:53:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C42921C01E for ; Wed, 20 Jan 2016 23:53:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D03D134067D for ; Wed, 20 Jan 2016 23:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 15458CF1 for ; Wed, 20 Jan 2016 23:53:35 +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: <1453333979.e9b210e53b7117d4b8c5cc6827790ea50cb2df13.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/checks/ebuilds/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/checks/ebuilds/checks.py X-VCS-Directories: pym/repoman/checks/ebuilds/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: e9b210e53b7117d4b8c5cc6827790ea50cb2df13 X-VCS-Branch: repoman Date: Wed, 20 Jan 2016 23:53:35 +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: c838ed83-800b-4f4d-82fc-bc930a98ea6b X-Archives-Hash: 2e70c223558f95a45218f31edc3df80f commit: e9b210e53b7117d4b8c5cc6827790ea50cb2df13 Author: Zac Medico gentoo org> AuthorDate: Tue Jan 19 07:13:31 2016 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Jan 20 23:52:59 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e9b210e5 repoman: fix _here_doc_re to handle file redirection This suppresses "Unquoted Variable" warnings for sys-apps/portage ebuilds where a here-doc is used to generate repos.conf: ebuild.minorsyn 6 sys-apps/portage/portage-2.2.8-r2.ebuild: Unquoted Variable on line: 496 sys-apps/portage/portage-2.2.20.1.ebuild: Unquoted Variable on line: 290 sys-apps/portage/portage-2.2.23.ebuild: Unquoted Variable on line: 290 sys-apps/portage/portage-2.2.24.ebuild: Unquoted Variable on line: 290 sys-apps/portage/portage-2.2.25.ebuild: Unquoted Variable on line: 290 sys-apps/portage/portage-2.2.26.ebuild: Unquoted Variable on line: 294 Acked-by: Brian Dolbec gentoo.org> pym/repoman/checks/ebuilds/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/repoman/checks/ebuilds/checks.py b/pym/repoman/checks/ebuilds/checks.py index 7bab8e4..5420e51 100644 --- a/pym/repoman/checks/ebuilds/checks.py +++ b/pym/repoman/checks/ebuilds/checks.py @@ -920,7 +920,7 @@ def checks_init(experimental_inherit=False): for k, kwargs in _eclass_info.items()))) -_here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$') +_here_doc_re = re.compile(r'.*<<[-]?(\w+)\s*(>\s*\S+\s*)?$') _ignore_comment_re = re.compile(r'^\s*#')