Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
073e3e4b
Commit
073e3e4b
authored
Sep 15, 2014
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
genbt5list: fixed bt5 list name
was too fast in previous attempt to fix the issue
parent
a4555829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/bin/genbt5list
product/ERP5/bin/genbt5list
+5
-4
No files found.
product/ERP5/bin/genbt5list
View file @
073e3e4b
...
...
@@ -216,14 +216,15 @@ def main(dir_list=None, **kw):
for
d
in
dir_list
:
bt5list
=
generateInformation
(
d
,
**
kw
).
getvalue
()
# add pid in filename to avoid conflicts if several process calls genbt5list
d
=
os
.
path
.
join
(
d
,
'bt5list.new.%i'
%
os
.
getpid
())
destination_path
=
os
.
path
.
join
(
d
,
'bt5list'
)
temporary_path
=
destination_path
+
'.new.%i'
%
os
.
getpid
()
try
:
with
open
(
d
,
'wb'
)
as
f
:
with
open
(
temporary_path
,
'wb'
)
as
f
:
f
.
write
(
bt5list
)
os
.
rename
(
d
,
'bt5list'
)
os
.
rename
(
temporary_path
,
destination_path
)
finally
:
try
:
os
.
remove
(
d
)
os
.
remove
(
temporary_path
)
except
OSError
:
pass
...
...
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