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
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
Xavier Thompson
slapos.recipe.build
Commits
053815eb
Commit
053815eb
authored
Oct 10, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: remove dead code
parent
7f74765f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
CHANGES.txt
CHANGES.txt
+0
-2
slapos/recipe/build/__init__.py
slapos/recipe/build/__init__.py
+1
-21
No files found.
CHANGES.txt
View file @
053815eb
...
...
@@ -178,8 +178,6 @@
* Bugfix: Honour correctly passed md5sum to download method. [Łukasz Nowak]
* Feature: Utility methods pipeCommand and failIfPathExists. [Łukasz Nowak]
* Bugfix: Rename promisee to promise. [Łukasz Nowak]
* Feature: Allow to define update_script and slapos_update_promise [Łukasz
Nowak]
* Feature: Just warn in case of lack of promise. [Łukasz Nowak]
0.1 (2011-08-26)
...
...
slapos/recipe/build/__init__.py
View file @
053815eb
...
...
@@ -253,7 +253,6 @@ class Script:
return
True
script
=
'raise NotImplementedError'
update_script
=
None
def
__init__
(
self
,
buildout
,
name
,
options
):
self
.
cleanup_dir_list
=
[]
...
...
@@ -341,26 +340,7 @@ class Script:
return
[
self
.
options
[
'location'
]]
def
update
(
self
):
if
self
.
update_script
is
None
:
return
None
try
:
env
=
self
.
getEnvironment
()
# env is used in script exec'ed below
exec
self
.
options
[
'update_script'
]
try
:
self
.
_checkPromise
(
'slapos_update_promise'
,
self
.
options
[
'location'
])
except
Exception
:
self
.
logger
.
info
(
'Keeping location %r during update'
%
self
.
options
[
'location'
])
raise
finally
:
for
d
in
self
.
cleanup_dir_list
:
if
os
.
path
.
exists
(
d
):
self
.
logger
.
debug
(
'Cleanup directory %r'
%
d
)
shutil
.
rmtree
(
d
)
for
f
in
self
.
cleanup_file_list
:
if
os
.
path
.
exists
(
f
):
self
.
logger
.
debug
(
'Cleanup file %r'
%
f
)
os
.
unlink
(
f
)
pass
def
applyPatchList
(
self
,
patch_string
,
patch_options
=
None
,
patch_binary
=
None
,
cwd
=
None
):
if
patch_string
is
not
None
:
...
...
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