From: Zac Medico Date: Sat, 20 Dec 2008 20:22:39 +0000 (-0000) Subject: Adjust the EbuildNestedDie pattern so that it only matches when ( is surrounded X-Git-Tag: v2.2_rc18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bcacfe9c1861d6efa250756f1380400e720eff7c;p=portage.git Adjust the EbuildNestedDie pattern so that it only matches when ( is surrounded by whitespace. This filters out false positives triggered by sed expressions in net-analyzer/amap-5.2-r1 and media-libs/libsndfile-1.0.17-r1. Thanks to Diego Pettenò for reporting. svn path=/main/trunk/; revision=12265 --- 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):