Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
amrani
erp5
Commits
42ca861e
Commit
42ca861e
authored
8 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
testTemplateTool: fix regexp of SVN title.
now it is like "<title>public - Revions 12345: /path</title>".
parent
3bf05d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+1
-1
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
42ca861e
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment