From: Heather Date: Mon, 11 Feb 2013 07:41:04 +0000 (+0400) Subject: nowarn syntax for repoman to ignore X-Git-Tag: v2.2.0_alpha162~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de51993645f9656dfa8a74f6bf9cc85ed56ee8fa;p=portage.git nowarn syntax for repoman to ignore --- diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 9dd3b959d..3b2b124ba 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -883,17 +883,18 @@ def run_checks(contents, pkg): multiline = line continue - # Finally we have a full line to parse. - is_comment = _ignore_comment_re.match(line) is not None - for lc in checks: - if is_comment and lc.ignore_comment: - continue - if lc.check_eapi(pkg.eapi): - ignore = lc.ignore_line - if not ignore or not ignore.match(line): - e = lc.check(num, line) - if e: - yield lc.repoman_check_name, e % (num + 1) + if not line.endswith("#nowarn\n"): + # Finally we have a full line to parse. + is_comment = _ignore_comment_re.match(line) is not None + for lc in checks: + if is_comment and lc.ignore_comment: + continue + if lc.check_eapi(pkg.eapi): + ignore = lc.ignore_line + if not ignore or not ignore.match(line): + e = lc.check(num, line) + if e: + yield lc.repoman_check_name, e % (num + 1) for lc in checks: i = lc.end()