aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-12 08:45:43 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-12 08:45:43 +0000
commit6518754b26d59a9dbb5a56a79075499a8dd27f8a (patch)
treeb4f5613ecf8a157286448b1cf32ced8c884b3d4f /pym/repoman
parentUse _unicode_encode() and _unicode_decode() where appropriate. (diff)
downloadportage-6518754b26d59a9dbb5a56a79075499a8dd27f8a.tar.gz
portage-6518754b26d59a9dbb5a56a79075499a8dd27f8a.tar.bz2
portage-6518754b26d59a9dbb5a56a79075499a8dd27f8a.zip
Bug #281133 - Fix the here-document code inside run_checks() to properly
detect the end of a here-document when it is indented by whitespace. svn path=/main/trunk/; revision=14012
Diffstat (limited to 'pym/repoman')
-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 4c2bcd113..4650e7d50 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -516,7 +516,7 @@ def run_checks(contents, pkg):
if here_doc_delim is None:
here_doc = _here_doc_re.match(line)
if here_doc is not None:
- here_doc_delim = re.compile('^%s$' % here_doc.group(1))
+ here_doc_delim = re.compile('^\s*%s$' % here_doc.group(1))
if here_doc_delim is None:
# We're not in a here-document.