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
Xavier Thompson
slapos.buildout
Commits
30961cdc
Commit
30961cdc
authored
Dec 19, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tmp]: Fix += and -= in the same file
parent
5ac7940a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+4
-3
No files found.
src/zc/buildout/buildout.py
View file @
30961cdc
...
...
@@ -2127,8 +2127,6 @@ class _extends(object):
result
=
{}
for
d
in
self
.
extends
:
_update
(
result
,
d
)
# Hack: Update with itself to process += in the same file
_update
(
result
,
result
)
return
result
def
__getattr__
(
self
,
attr
):
...
...
@@ -2313,7 +2311,10 @@ def _update(d1, d2):
if
section
in
d1
:
_update_section
(
d1
[
section
],
d2
[
section
])
else
:
d1
[
section
]
=
d2
[
section
]
# In order to process += (and -=) correctly when
# <key> = <value> and <key> += <value> are in the same section
# _update_section must be called even when section is not in d1
d1
[
section
]
=
_update_section
({},
d2
[
section
])
return
d1
def
_recipe
(
options
):
...
...
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