Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Lu Xu
slapos
Commits
151a120e
Commit
151a120e
authored
Aug 09, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When updating bt5, update repositories before even if they are already present
because new bt5 may have been added in the meantime.
parent
9f72c8fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
slapos/recipe/erp5/erp5.py
slapos/recipe/erp5/erp5.py
+7
-11
No files found.
slapos/recipe/erp5/erp5.py
View file @
151a120e
...
...
@@ -155,17 +155,13 @@ class ERP5Updater(object):
def
isBusinessTemplateUpdated
(
self
):
return
len
(
self
.
getMissingBusinessTemplateSet
())
==
0
def
isBusinessTemplateRepositoryUpdated
(
self
):
return
len
(
self
.
getMissingBusinessTemplateRepositoryList
())
==
0
def
updateBusinessTemplateList
(
self
):
""" Update Business Template Configuration, including the repositories
"""
if
not
self
.
isBusinessTemplateUpdated
():
# Before update the business templates, it is required to make
# sure the repositories are updated.
if
not
self
.
isBusinessTemplateRepositoryUpdated
():
# Require to update Business template Repository
# Before updating the business templates, it is required to make sure
# the repositories are updated, thus update them even if they are
# already present because there may be new business templates...
repository_list
=
self
.
getSystemSignatureDict
(
"business_template_repository_list"
,
[])
repository_list
.
extend
(
self
.
getMissingBusinessTemplateRepositoryList
())
...
...
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