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
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.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):
...
@@ -279,11 +279,6 @@ class Recipe(EnvironMixin):
and
os
.
path
.
exists
(
self
.
buildout_prefix
)):
and
os
.
path
.
exists
(
self
.
buildout_prefix
)):
log
.
info
(
'Getting installed file lists'
)
log
.
info
(
'Getting installed file lists'
)
parts
+=
self
.
get_installed_files
(
compile_dir
)
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
:
except
:
self
.
generate_build_environment_script
(
configure_cmd
,
make_cmd
,
install_cmd
)
self
.
generate_build_environment_script
(
configure_cmd
,
make_cmd
,
install_cmd
)
log
.
error
(
'Compilation error. The package is left as is at %s where '
log
.
error
(
'Compilation error. The package is left as is at %s where '
...
@@ -291,14 +286,17 @@ class Recipe(EnvironMixin):
...
@@ -291,14 +286,17 @@ class Recipe(EnvironMixin):
'A shell script slapos.recipe.build.env.sh has been generated. '
'A shell script slapos.recipe.build.env.sh has been generated. '
'You can source it in your shell to reproduce build environment.'
,
'You can source it in your shell to reproduce build environment.'
,
os
.
getcwd
())
os
.
getcwd
())
raise
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
:
finally
:
os
.
chdir
(
current_dir
)
os
.
chdir
(
current_dir
)
if
url
and
not
is_true
(
if
url
and
not
keep_compile_dir
:
self
.
options
.
get
(
'keep-compile-dir'
)
or
self
.
buildout
[
'buildout'
].
get
(
'keep-compile-dir'
)):
shutil
.
rmtree
(
compile_dir
)
shutil
.
rmtree
(
compile_dir
)
# Check promises
# 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