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.cmmi
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.cmmi
Commits
e1cc8293
Commit
e1cc8293
authored
Dec 29, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small clean-up
parent
924f1ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+7
-9
No files found.
slapos/recipe/cmmi/__init__.py
View file @
e1cc8293
...
...
@@ -279,11 +279,6 @@ class Recipe(EnvironMixin):
and
os
.
path
.
exists
(
self
.
buildout_prefix
)):
log
.
info
(
'Getting installed file lists'
)
parts
+=
self
.
get_installed_files
(
compile_dir
)
if
is_true
(
self
.
options
.
get
(
'keep-compile-dir'
)
or
self
.
buildout
[
'buildout'
].
get
(
'keep-compile-dir'
)):
self
.
generate_build_environment_script
(
configure_cmd
,
make_cmd
,
install_cmd
)
log
.
info
(
'A shell script slapos.recipe.build.env.sh has been generated.'
)
except
:
self
.
generate_build_environment_script
(
configure_cmd
,
make_cmd
,
install_cmd
)
log
.
error
(
'Compilation error. The package is left as is at %s where '
...
...
@@ -291,14 +286,17 @@ class Recipe(EnvironMixin):
'A shell script slapos.recipe.build.env.sh has been generated. '
'You can source it in your shell to reproduce build environment.'
,
os
.
getcwd
())
raise
keep_compile_dir
=
is_true
(
self
.
options
.
get
(
'keep-compile-dir'
)
or
self
.
buildout
[
'buildout'
].
get
(
'keep-compile-dir'
))
if
keep_compile_dir
:
self
.
generate_build_environment_script
(
configure_cmd
,
make_cmd
,
install_cmd
)
log
.
info
(
'A shell script slapos.recipe.build.env.sh has been generated.'
)
finally
:
os
.
chdir
(
current_dir
)
if
url
and
not
is_true
(
self
.
options
.
get
(
'keep-compile-dir'
)
or
self
.
buildout
[
'buildout'
].
get
(
'keep-compile-dir'
)):
if
url
and
not
keep_compile_dir
:
shutil
.
rmtree
(
compile_dir
)
# Check promises
...
...
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