Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.build
Commits
98f36c4e
Commit
98f36c4e
authored
Sep 05, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemnet update_script support.
parent
99886261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
slapos/recipe/build.py
slapos/recipe/build.py
+11
-2
No files found.
slapos/recipe/build.py
View file @
98f36c4e
...
@@ -226,6 +226,7 @@ class Script:
...
@@ -226,6 +226,7 @@ class Script:
return
True
return
True
script
=
'raise NotImplementedError'
script
=
'raise NotImplementedError'
update_script
=
None
def
__init__
(
self
,
buildout
,
name
,
options
):
def
__init__
(
self
,
buildout
,
name
,
options
):
self
.
cleanup_dir_list
=
[]
self
.
cleanup_dir_list
=
[]
...
@@ -294,8 +295,16 @@ class Script:
...
@@ -294,8 +295,16 @@ class Script:
return
[
self
.
options
[
'location'
]]
return
[
self
.
options
[
'location'
]]
def
update
(
self
):
def
update
(
self
):
pass
if
self
.
update_script
is
None
:
return
None
try
:
env
=
self
.
getEnvironment
()
exec
self
.
options
[
'update_script'
]
finally
:
for
d
in
self
.
cleanup_dir_list
:
if
os
.
path
.
exists
(
d
):
self
.
logger
.
debug
(
'Cleanup directory %r'
%
d
)
shutil
.
rmtree
(
d
)
class
Cmmi
(
Script
):
class
Cmmi
(
Script
):
"""Simple configure-make-make-insall compatible with hexagonit.recipe.cmmi
"""Simple configure-make-make-insall compatible with hexagonit.recipe.cmmi
...
...
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