projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ecc5bf
)
Bug #281133 - Fix the here-document code inside run_checks() to properly
author
Zac Medico
<zmedico@gentoo.org>
Wed, 12 Aug 2009 08:45:43 +0000
(08:45 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 12 Aug 2009 08:45:43 +0000
(08:45 -0000)
detect the end of a here-document when it is indented by whitespace.
svn path=/main/trunk/; revision=14012
pym/repoman/checks.py
patch
|
blob
|
history
diff --git
a/pym/repoman/checks.py
b/pym/repoman/checks.py
index 4c2bcd11359cce76e2ac69aadfd0e4adc270ef80..4650e7d509da1d3a64d76d7fab4f0c11329765b6 100644
(file)
--- 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.