From 27eda93149cb1e731d5f29c2bb788d7aa181bc9f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 12 Feb 2011 23:50:08 -0800 Subject: repoman: variable.usedwithhelpers ignore comments This will fix bug #354685. --- pym/repoman/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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): -- cgit v1.2.3-1-g7c22