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
Lu Xu
slapos.core
Commits
d3aa0a7c
Commit
d3aa0a7c
authored
Jun 24, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use temporary extends-cache during software setup.
parent
e6732346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
CHANGES.txt
CHANGES.txt
+2
-1
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+17
-10
No files found.
CHANGES.txt
View file @
d3aa0a7c
0.5 (unreleased)
================
* No changes yet.
* slapgrid: Use temporary extends-cache directory in order to make faster
remote profile refresh. [Łukasz Nowak]
0.4 (2011-06-24)
================
...
...
slapos/grid/SlapObject.py
View file @
d3aa0a7c
...
...
@@ -29,7 +29,9 @@ import os
import
shutil
import
subprocess
import
pkg_resources
import
shutil
import
stat
import
tempfile
from
supervisor
import
xmlrpc
import
xmlrpclib
import
pwd
...
...
@@ -72,16 +74,21 @@ class Software(object):
root_stat_info
.
st_gid
!=
path_stat_info
.
st_gid
:
os
.
chown
(
path
,
root_stat_info
.
st_uid
,
root_stat_info
.
st_gid
)
buildout_parameter_list
=
[
'buildout:directory=%s'
%
self
.
software_path
,
'-c'
,
self
.
url
]
bootstrapBuildout
(
self
.
software_path
,
self
.
buildout
,
additional_buildout_parametr_list
=
buildout_parameter_list
,
console
=
self
.
console
)
launchBuildout
(
self
.
software_path
,
os
.
path
.
join
(
self
.
software_path
,
'bin'
,
'buildout'
),
additional_buildout_parametr_list
=
buildout_parameter_list
,
console
=
self
.
console
)
extends_cache
=
tempfile
.
mkdtemp
()
try
:
buildout_parameter_list
=
[
'buildout:extends-cache=%s'
%
extends_cache
,
'buildout:directory=%s'
%
self
.
software_path
,
'-c'
,
self
.
url
]
bootstrapBuildout
(
self
.
software_path
,
self
.
buildout
,
additional_buildout_parametr_list
=
buildout_parameter_list
,
console
=
self
.
console
)
launchBuildout
(
self
.
software_path
,
os
.
path
.
join
(
self
.
software_path
,
'bin'
,
'buildout'
),
additional_buildout_parametr_list
=
buildout_parameter_list
,
console
=
self
.
console
)
finally
:
shutil
.
rmtree
(
extends_cache
)
def
remove
(
self
):
"""Removes the part that was installed.
...
...
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