Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: add prepend environment verb ......................................................................
packaging: setup: add prepend environment verb Change-Id: Ibb253e774483df7bc1dc6beeab755cd48ba7b1c6 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M src/otopi/__main__.py M src/otopi/constants.py 2 files changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/33/18533/1 diff --git a/src/otopi/__main__.py b/src/otopi/__main__.py index adc0943..f052f0b 100644 --- a/src/otopi/__main__.py +++ b/src/otopi/__main__.py @@ -62,6 +62,15 @@ ) environment.setdefault(key, '') environment[key] += ':%s' % value + elif key.startswith( + constants.Const.ENVIRONMENT_PREPEND_PREFIX + ): + key = key.replace( + constants.Const.ENVIRONMENT_PREPEND_PREFIX, + '' + ) + environment.setdefault(key, '') + environment[key] = '%s:%s' % (value, environment[key]) else: environment[key] = value diff --git a/src/otopi/constants.py b/src/otopi/constants.py index 39c8bd1..43dd3bb 100644 --- a/src/otopi/constants.py +++ b/src/otopi/constants.py @@ -74,6 +74,7 @@ @util.codegen class Const(object): ENVIRONMENT_APPEND_PREFIX = 'APPEND:' + ENVIRONMENT_PREPEND_PREFIX = 'PREPEND:' CONFIG_SECTION_DEFAULT = 'environment:default' CONFIG_SECTION_INIT = 'environment:init' CONFIG_SECTION_OVERRIDE = 'environment:override' -- To view, visit http://gerrit.ovirt.org/18533 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibb253e774483df7bc1dc6beeab755cd48ba7b1c6 Gerrit-PatchSet: 1 Gerrit-Project: otopi Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches