Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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.core
Commits
9925fe9e
Commit
9925fe9e
authored
Oct 01, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'rafael/master'
parents
ce36c5af
123a54a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
CHANGES.txt
CHANGES.txt
+5
-0
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+21
-5
slapos/version.py
slapos/version.py
+1
-1
No files found.
CHANGES.txt
View file @
9925fe9e
Changes
=======
1.4.11 (2018-09-28)
-------------------
* slapgrid-sr: do not rebootstrap unnecessarily
1.4.10 (2018-09-20)
-------------------
* add `--buildout-debug` command line option to `slapos node software` and
...
...
slapos/grid/SlapObject.py
View file @
9925fe9e
...
...
@@ -28,6 +28,7 @@
#
##############################################################################
import
errno
import
os
import
pkg_resources
import
pwd
...
...
@@ -254,6 +255,7 @@ class Software(object):
extends_cache
=
tempfile
.
mkdtemp
()
self
.
_set_ownership
(
extends_cache
)
f
=
None
try
:
buildout_cfg
=
os
.
path
.
join
(
self
.
software_path
,
'buildout.cfg'
)
if
not
os
.
path
.
exists
(
buildout_cfg
):
...
...
@@ -262,18 +264,32 @@ class Software(object):
additional_parameters
=
list
(
self
.
_additional_buildout_parameters
(
extends_cache
))
additional_parameters
.
extend
([
'-c'
,
buildout_cfg
])
buildout_binary
=
os
.
path
.
join
(
self
.
software_path
,
'bin'
,
'buildout'
)
buildout_marker
=
buildout_binary
+
"-bootstrap-skipped"
try
:
os
.
remove
(
buildout_marker
)
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
ENOENT
:
raise
if
os
.
path
.
exists
(
buildout_binary
):
f
=
open
(
buildout_marker
,
"w"
)
if
f
is
None
:
utils
.
bootstrapBuildout
(
path
=
self
.
software_path
,
buildout
=
self
.
buildout
,
logger
=
self
.
logger
,
additional_buildout_parameter_list
=
additional_parameters
)
utils
.
launchBuildout
(
path
=
self
.
software_path
,
buildout_binary
=
os
.
path
.
join
(
self
.
software_path
,
'bin'
,
'buildout'
)
,
buildout_binary
=
buildout_binary
,
logger
=
self
.
logger
,
additional_buildout_parameter_list
=
additional_parameters
,
debug
=
self
.
buildout_debug
)
if
f
is
not
None
:
os
.
remove
(
buildout_marker
)
finally
:
shutil
.
rmtree
(
extends_cache
)
if
f
is
not
None
:
f
.
close
()
def
_create_buildout_profile
(
self
,
buildout_cfg
,
url
):
with
open
(
buildout_cfg
,
'wb'
)
as
fout
:
...
...
slapos/version.py
View file @
9925fe9e
...
...
@@ -26,4 +26,4 @@
#
##############################################################################
version
=
'1.4.1
0
'
version
=
'1.4.1
1
'
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