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
Léo-Paul Géneau
slapos
Commits
dde27023
Commit
dde27023
authored
Jun 07, 2011
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create bt5 repositories
parent
f0e7b9a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
slapos/recipe/bef_erp5/__init__.py
slapos/recipe/bef_erp5/__init__.py
+22
-0
software/sanef/instance.cfg
software/sanef/instance.cfg
+5
-0
software/sanef/software.cfg
software/sanef/software.cfg
+11
-1
No files found.
slapos/recipe/bef_erp5/__init__.py
View file @
dde27023
...
...
@@ -283,6 +283,27 @@ class Recipe(slapos.recipe.erp5.Recipe):
))
return
self
.
path_list
def
installBT5Repo
(
self
):
"""
Create read only repo in the partition, to ease ERP5 configuration
"""
repo_path
=
os
.
path
.
join
(
self
.
var_directory
,
"bt5repo"
)
if
not
os
.
path
.
isdir
(
repo_path
):
os
.
mkdir
(
repo_path
)
for
repo
in
self
.
options
.
get
(
'bt5_repo_list'
,
''
).
splitlines
():
if
not
repo
:
continue
target
,
linkname
=
linkline
.
split
()
link
=
os
.
path
.
join
(
repo_path
,
linkname
)
if
os
.
path
.
lexists
(
link
):
if
not
os
.
path
.
islink
(
link
):
raise
zc
.
buildout
.
UserError
(
'Target link already %r exists but it is not link'
%
link
)
os
.
unlink
(
link
)
os
.
symlink
(
target
,
link
)
self
.
logger
.
debug
(
'Created link %r -> %r'
%
(
link
,
target
))
self
.
path_list
.
append
(
repo_path
)
def
_install
(
self
):
self
.
path_list
=
[]
self
.
requirements
,
self
.
ws
=
self
.
egg
.
working_set
()
...
...
@@ -294,6 +315,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
'killpidfromfile'
)],
self
.
ws
,
sys
.
executable
,
self
.
bin_directory
)[
0
]
self
.
path_list
.
append
(
self
.
killpidfromfile
)
self
.
linkBinary
()
self
.
installBT5Repo
()
if
self
.
parameter_dict
.
get
(
'development'
,
'false'
).
lower
()
==
'true'
:
self
.
development
=
True
return
self
.
installDevelopmentEnvironment
()
...
...
software/sanef/instance.cfg
View file @
dde27023
...
...
@@ -59,6 +59,11 @@ link_binary_list =
${xpdf:location}/bin/pdftotext
${xtrabackup:location}/bin/xtrabackup_51
bt5_repo_list =
${erp5:location}/product/ERP5/bootstrap bt5bootstrap
${erp5:location}/bt5 bt5erp5
${bt5-bef:location} bt5bef
# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
...
...
software/sanef/software.cfg
View file @
dde27023
...
...
@@ -10,6 +10,8 @@ parts +=
mysql-tritonn-5.0
products-bef
products-upgrade
bt5-bef
bt5-repository
[eggs]
# Just so buildout executes [bef_erp5-recipe] before [eggs], as
...
...
@@ -30,7 +32,7 @@ extra-paths +=
[template]
url = ${:_profile_base_location_}/instance.cfg
md5sum =
8ed5e0c3dcbde0f88e18dba0d364fabf
md5sum =
9487896be21080323462a5f289db6c5e
[instance-recipe]
egg = slapos.cookbook
...
...
@@ -47,6 +49,14 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
[bt5-repository]
recipe = plone.recipe.command
stop-on-error = true
command =
${erp5:location}/product/ERP5/bin/genbt5list ${erp5:location}/product/ERP5/bootstrap ${erp5:location}/bt5 ${bt5-bef:location}
update-command = ${:command}
[bt5-bef]
<= bef-svn-template
command =
...
...
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