Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix summation and substraction from options #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schipiga
Copy link

@schipiga schipiga commented Mar 6, 2014

This patch allows to increment and decrement variables within sections, inherited sections and conditional sections.
For example, you have a section, that creates a json like that:
{"key-1": "value-1", "key-2": "value-2", "key-3": "value-3"}

[make-json]
recipe = recipes:jsonize
json = key-1 value-1 key-2 value-2 key-3 value-3

and you want to add a part {"key-4": "value-4"} in Mac OS X:

[make-json:macosx]
json += key-4 value-4

It will not increment! It will create a separate invalid variable json + into .installed.cfg
And you will not be able to buildout again, because buildout will say: "Sorry, guy, json + is invalid variable format in .installed.cfg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants