summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-12 23:50:08 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-12 23:50:08 -0800
commit27eda93149cb1e731d5f29c2bb788d7aa181bc9f (patch)
treeb67fb4834cbfa6cb361f9d0a341f0edc3fb7fe59
parent37b9c61f2d16d09a4ae1bcb61d63af4e64b667f4 (diff)
downloadportage-27eda93149cb1e731d5f29c2bb788d7aa181bc9f.tar.gz
portage-27eda93149cb1e731d5f29c2bb788d7aa181bc9f.tar.bz2
portage-27eda93149cb1e731d5f29c2bb788d7aa181bc9f.zip
repoman: variable.usedwithhelpers ignore comments
This will fix bug #354685.
-rw-r--r--pym/repoman/checks.py2
1 files changed, 1 insertions, 1 deletions
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):