From 8c2d3450a6d0a14cd779057ce8e7b4e2003ca36b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 20 Dec 2008 20:24:18 +0000 Subject: =?UTF-8?q?Adjust=20the=20EbuildNestedDie=20pattern=20so=20that=20?= =?UTF-8?q?it=20only=20matches=20when=20(=20is=20surrounded=20by=20whitesp?= =?UTF-8?q?ace.=20This=20filters=20out=20false=20positives=20triggered=20b?= =?UTF-8?q?y=20sed=20expressions=20in=20net-analyzer/amap-5.2-r1=20and=20m?= =?UTF-8?q?edia-libs/libsndfile-1.0.17-r1.=20Thanks=20to=20Diego=20Petten?= =?UTF-8?q?=C3=B2=20=20for=20reporting.=20(trunk=20r12265)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/branches/2.1.6/; revision=12267 --- pym/repoman/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 6f2c076c3..7565039f2 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -177,7 +177,7 @@ class EbuildNestedDie(LineCheck): """Check ebuild for nested die statements (die statements in subshells""" repoman_check_name = 'ebuild.nesteddie' - nesteddie_re = re.compile(r'^[^#]*\([^)]*\bdie\b') + nesteddie_re = re.compile(r'^[^#]*\s\(\s[^)]*\bdie\b') def check(self, num, line): if self.nesteddie_re.match(line): -- cgit v1.2.3-1-g7c22