diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-12 23:50:08 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-13 20:26:40 -0800 |
commit | a1ead27a48733601cfbac18ef07f1593dbd524d1 (patch) | |
tree | 33fa63827695c2f1a57100f7bb2a49210b421be2 /pym | |
parent | 38d668d8734de42e6c27affe16dd0e2a21af35d3 (diff) | |
download | portage-a1ead27a48733601cfbac18ef07f1593dbd524d1.tar.gz portage-a1ead27a48733601cfbac18ef07f1593dbd524d1.tar.bz2 portage-a1ead27a48733601cfbac18ef07f1593dbd524d1.zip |
repoman: variable.usedwithhelpers ignore comments
This will fix bug #354685.
Diffstat (limited to 'pym')
-rw-r--r-- | pym/repoman/checks.py | 2 |
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): |