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
Nirina Malard
slapos
Commits
0c46652c
Commit
0c46652c
authored
Jul 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now portal_introspections is present since begin.
parent
faa673cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
slapos/recipe/erp5/erp5.py
slapos/recipe/erp5/erp5.py
+0
-29
No files found.
slapos/recipe/erp5/erp5.py
View file @
0c46652c
...
@@ -293,41 +293,12 @@ class ERP5Updater(object):
...
@@ -293,41 +293,12 @@ class ERP5Updater(object):
if
activity_dict
[
"failure"
]
>
0
:
if
activity_dict
[
"failure"
]
>
0
:
return
True
return
True
def
_updatePreRequiredBusinessTemplateList
(
self
):
""" Update only the first part of bt5."""
# This list contains the minimal set of bt5 required to install
# portal_introspections. Move portal_introspection to erp5_core
# can remove this set.
pre_required_business_template_list
=
[
i
for
i
in
self
.
business_template_list
\
if
i
.
startswith
(
"erp5_full_text"
)
or
i
==
"erp5_base"
]
if
len
(
self
.
business_template_repository_list
)
>
0
and
\
len
(
pre_required_business_template_list
):
pre_required_business_template_list
.
insert
(
0
,
"erp5_core_proxy_field_legacy"
)
self
.
_setRepositoryList
(
self
.
business_template_repository_list
)
time
.
sleep
(
30
)
for
bt
in
pre_required_business_template_list
:
update_catalog
=
bt
.
endswith
(
"_catalog"
)
self
.
_installBusinessTemplateList
([
bt
],
update_catalog
)
else
:
self
.
log
(
"ERROR"
,
"Unable to install erp5_base, it is not on your "
+
\
"requested business templates list. Once it is installed "
+
\
"setup will continue"
)
def
run
(
self
):
def
run
(
self
):
""" Keep running until kill"""
""" Keep running until kill"""
while
1
:
while
1
:
time
.
sleep
(
30
)
time
.
sleep
(
30
)
if
not
self
.
updateERP5Site
():
if
not
self
.
updateERP5Site
():
self
.
loadSystemSignatureDict
()
self
.
loadSystemSignatureDict
()
if
self
.
getSystemSignatureDict
()
is
None
:
self
.
log
(
"INFO"
,
"The erp5_base is not installed yet, trying to "
+
\
"install it before continue."
)
self
.
_updatePreRequiredBusinessTemplateList
()
time
.
sleep
(
60
)
continue
if
self
.
_hasActivityPresent
():
if
self
.
_hasActivityPresent
():
self
.
log
(
"DEBUG"
,
"Waiting for activities on ERP5..."
)
self
.
log
(
"DEBUG"
,
"Waiting for activities on ERP5..."
)
if
self
.
_hasFailureActivity
():
if
self
.
_hasFailureActivity
():
...
...
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