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
79ad6b8f
Commit
79ad6b8f
authored
Apr 15, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include part signature inside shared signature
parent
6e754e0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+10
-6
No files found.
slapos/recipe/cmmi/__init__.py
View file @
79ad6b8f
...
@@ -40,6 +40,16 @@ class Recipe(object):
...
@@ -40,6 +40,16 @@ class Recipe(object):
self
.
original_options
=
options
.
copy
()
self
.
original_options
=
options
.
copy
()
options
.
update
(
platform_options
)
options
.
update
(
platform_options
)
environment_section
=
options
.
get
(
'environment-section'
)
self
.
environ
=
(
buildout
[
environment_section
].
copy
()
if
environment_section
else
{})
# Trigger computation of part signature for shared signature.
# From now on, we should not pull new dependencies.
# Ignore if buildout is too old.
options
.
get
(
'__buildout_signature__'
)
shared
=
((
options
.
get
(
'shared'
,
''
).
lower
()
==
'true'
)
and
shared
=
((
options
.
get
(
'shared'
,
''
).
lower
()
==
'true'
)
and
buildout
[
'buildout'
].
get
(
'shared-part-list'
,
None
))
buildout
[
'buildout'
].
get
(
'shared-part-list'
,
None
))
if
shared
:
if
shared
:
...
@@ -98,13 +108,7 @@ class Recipe(object):
...
@@ -98,13 +108,7 @@ class Recipe(object):
if
'@@LOCATION@@'
in
v
:
if
'@@LOCATION@@'
in
v
:
options
[
k
]
=
v
.
replace
(
'@@LOCATION@@'
,
location
)
options
[
k
]
=
v
.
replace
(
'@@LOCATION@@'
,
location
)
self
.
environ
=
{}
self
.
original_environment
=
os
.
environ
.
copy
()
self
.
original_environment
=
os
.
environ
.
copy
()
environment_section
=
self
.
options
.
get
(
'environment-section'
,
''
).
strip
()
if
environment_section
and
environment_section
in
buildout
:
# Use environment variables from the designated config section.
self
.
environ
.
update
(
buildout
[
environment_section
])
for
variable
in
options
.
get
(
'environment'
,
''
).
splitlines
():
for
variable
in
options
.
get
(
'environment'
,
''
).
splitlines
():
if
variable
.
strip
():
if
variable
.
strip
():
try
:
try
:
...
...
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