Commit 42ca861e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testTemplateTool: fix regexp of SVN title.

now it is like "<title>public - Revions 12345: /path</title>".
parent 3bf05d59
......@@ -333,7 +333,7 @@ class TemplateTool (BaseTool):
try:
os.close(tempid) # Close the opened fd as soon as possible.
file_path, headers = urlretrieve(url, temppath)
if re.search(r'<title>Revision \d+:', open(file_path, 'r').read()):
if re.search(r'<title>.*Revision \d+:', open(file_path, 'r').read()):
# this looks like a subversion repository, try to check it out
LOG('ERP5', INFO, 'TemplateTool doing a svn checkout of %s' % url)
return self._download_svn(url, bt_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment