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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5
Commits
b1f0fe8a
Commit
b1f0fe8a
authored
Jan 09, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_package: Update createInstallationData function to remove data from conflicted_data list
parent
5b2748f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/Document/BusinessPackage.py
product/ERP5/Document/BusinessPackage.py
+5
-2
No files found.
product/ERP5/Document/BusinessPackage.py
View file @
b1f0fe8a
...
...
@@ -452,7 +452,7 @@ def createInstallationData(package_list):
for
package
in
package_list
:
path_list
.
extend
(
package
.
getTemplatePathList
())
path_list
=
list
(
set
(
path_list
))
import
copy
for
package
in
package_list
:
obj_dict
=
package
.
_path_item
.
_objects
hash_dict
=
package
.
_path_item
.
_hash
...
...
@@ -474,11 +474,14 @@ def createInstallationData(package_list):
# compare hash of the objects
else
:
# Leave the metadata in final_data in case the hash matches,
# else add it to conflicted_data
# else add it to conflicted_data
and remove the older
if
final_data
[
path
][
'sha'
]
==
object_metadata
[
'sha'
]:
continue
else
:
conflicted_data
[
path
]
=
[
object_metadata
]
conflict_object_metadata
=
copy
.
copy
(
final_data
[
path
])
conflicted_data
[
path
].
append
(
conflict_object_metadata
)
del
final_data
[
path
]
return
final_data
,
conflicted_data
...
...
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