Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Yusei Tahara
slapos.buildout
Commits
164c65f0
Commit
164c65f0
authored
Oct 31, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! In __buildout_signature__, fix missing parts that are pulled by recipes' __init__
parent
a853099d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
+24
-20
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+20
-19
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+4
-1
No files found.
src/zc/buildout/buildout.py
View file @
164c65f0
...
...
@@ -1282,23 +1282,22 @@ class Buildout(DictMixin):
def
__getitem__
(
self
,
section
):
__doing__
=
'Getting section %s.'
,
section
if
self
.
_initializing
:
caller
=
self
.
_initializing
[
-
1
]
if
'buildout'
!=
section
!=
caller
.
name
:
caller
.
depends
.
add
(
section
)
try
:
return
self
.
_data
[
section
]
options
=
self
.
_data
[
section
]
except
KeyError
:
pass
try
:
data
=
self
.
_raw
[
section
]
except
KeyError
:
raise
MissingSection
(
section
)
try
:
data
=
self
.
_raw
[
section
]
except
KeyError
:
raise
MissingSection
(
section
)
options
=
self
.
Options
(
self
,
section
,
data
)
self
.
_data
[
section
]
=
options
options
.
_initialize
()
options
=
self
.
Options
(
self
,
section
,
data
)
self
.
_data
[
section
]
=
options
options
.
_initialize
()
if
self
.
_initializing
:
caller
=
self
.
_initializing
[
-
1
]
if
'buildout'
!=
section
!=
caller
.
name
:
caller
.
depends
.
add
(
section
)
return
options
def
__setitem__
(
self
,
name
,
data
):
...
...
@@ -1508,12 +1507,14 @@ class Options(DictMixin):
section
,
option
=
s
if
not
section
:
section
=
self
.
name
elif
section
!=
'buildout'
:
assert
not
self
.
buildout
.
_initializing
,
(
self
.
name
,
self
.
buildout
.
_initializing
[
-
1
],
len
(
self
.
buildout
.
_initializing
))
self
.
depends
.
add
(
section
)
v
=
self
.
buildout
[
section
].
get
(
option
,
None
,
seen
,
last
=
last
)
options
=
self
else
:
self
.
buildout
.
_initializing
.
append
(
self
)
try
:
options
=
self
.
buildout
[
section
]
finally
:
del
self
.
buildout
.
_initializing
[
-
1
]
v
=
options
.
get
(
option
,
None
,
seen
,
last
=
last
)
if
v
is
None
:
if
option
==
'_buildout_section_name_'
:
v
=
self
.
name
...
...
src/zc/buildout/tests.py
View file @
164c65f0
...
...
@@ -2118,6 +2118,9 @@ def test_part_pulled_by_recipe():
... <= a
... a = A
... b = B
... c = ${c:x}
... [c]
... x = c
... ''')
>>> os.chdir(sample_buildout)
...
...
@@ -2142,7 +2145,7 @@ def test_part_pulled_by_recipe():
...
[b]
__buildout_installed__ =
__buildout_signature__ = recipes-c79aac86a90182467ce2fdae8b56eb1c
__buildout_signature__ = recipes-c79aac86a90182467ce2fdae8b56eb1c
c:...
...
[a]
__buildout_installed__ =
...
...
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