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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.recipe.cmmi
Commits
79d15cb0
Commit
79d15cb0
authored
Jun 22, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just to save
parent
5239a27d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+15
-3
No files found.
slapos/recipe/cmmi/__init__.py
View file @
79d15cb0
...
...
@@ -64,7 +64,11 @@ class Recipe(object):
log
.
debug
(
"Updating hash with %s"
,
option_signature
)
self
.
_debug_signature_text
.
append
(
option_signature
)
# Or maybe warn and disable cache
"""
if buildout_directory in option_signature:
raise NotImplementedError(type(buildout_directory), buildout_directory, option_signature, self.name)
assert buildout_directory not in option_signature
"""
m
.
update
(
option_signature
)
shared
=
os
.
path
.
join
(
shared
,
m
.
hexdigest
())
...
...
@@ -120,7 +124,13 @@ class Recipe(object):
from
copy
import
copy
for
k
,
v
in
copy
(
options
.
items
()):
if
'@@LOCATION@@'
in
v
:
options
[
k
]
=
v
.
replace
(
'@@LOCATION@@'
,
default_location
)
v
=
options
[
k
]
=
v
.
replace
(
'@@LOCATION@@'
,
default_location
)
if
'@@HEAD_LOCATION@@'
in
v
:
v
=
options
[
k
]
=
v
.
replace
(
'@@HEAD_LOCATION@@'
,
os
.
path
.
split
(
default_location
)[
0
])
if
'@@TAIL_LOCATION@@'
in
v
:
v
=
options
[
k
]
=
v
.
replace
(
'@@TAIL_LOCATION@@'
,
os
.
path
.
split
(
default_location
)[
1
])
log
.
info
(
'****************** tail location key *********%s '
%
k
)
log
.
info
(
'****************** tail location *********%s '
%
options
[
k
])
self
.
environ
=
{}
self
.
original_environment
=
os
.
environ
.
copy
()
...
...
@@ -328,6 +338,8 @@ class Recipe(object):
opt
=
self
.
options
.
copy
()
opt
[
'destination'
]
=
compile_dir
opt
[
'strip-top-level-dir'
]
=
'false'
# no need to shared build for compile dir
opt
[
'shared'
]
=
False
slapos
.
recipe
.
downloadunpacked
.
Recipe
(
self
.
buildout
,
self
.
name
,
opt
).
install
()
except
:
...
...
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