From: Zac Medico Date: Sun, 13 Feb 2011 07:50:08 +0000 (-0800) Subject: repoman: variable.usedwithhelpers ignore comments X-Git-Tag: v2.1.9.40~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1ead27a48733601cfbac18ef07f1593dbd524d1;p=portage.git repoman: variable.usedwithhelpers ignore comments This will fix bug #354685. --- diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 7e5a8a18a..8f61c07c4 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -333,7 +333,7 @@ class NoOffsetWithHelpers(LineCheck): helpers """ repoman_check_name = 'variable.usedwithhelpers' - re = re.compile(r'.*\b(dodir|dohard|exeinto|insinto|into)\s+"?\$\{?(D|ROOT|ED|EROOT|EPREFIX)\}?.*') + re = re.compile(r'^[^#]*\b(dodir|dohard|exeinto|insinto|into)\s+"?\$\{?(D|ROOT|ED|EROOT|EPREFIX)\}?.*') error = errors.NO_OFFSET_WITH_HELPERS class ImplicitRuntimeDeps(LineCheck):