File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 42
42
from opengrok_tools .deploy import deploy_war
43
43
from opengrok_tools .mirror import OPENGROK_NO_MIRROR_ENV
44
44
from opengrok_tools .sync import do_sync
45
+ from opengrok_tools .utils .commandsequence import COMMAND_PROPERTY , ENV_PROPERTY
45
46
from opengrok_tools .utils .exitvals import SUCCESS_EXITVAL
46
47
from opengrok_tools .utils .indexer import Indexer
47
48
from opengrok_tools .utils .log import (
@@ -294,12 +295,14 @@ def merge_commands_env(commands, env):
294
295
:param env: environment dictionary
295
296
:return: updated commands structure
296
297
"""
297
- for cmd in commands :
298
- cmd_env = cmd .get ("env" )
299
- if cmd_env :
300
- cmd .env .update (env )
301
- else :
302
- cmd ["env" ] = env
298
+ for entry in commands :
299
+ cmd = entry .get (COMMAND_PROPERTY )
300
+ if cmd :
301
+ cmd_env = cmd .get (ENV_PROPERTY )
302
+ if cmd_env :
303
+ cmd_env .update (env )
304
+ else :
305
+ cmd [ENV_PROPERTY ] = env
303
306
304
307
return commands
305
308
You can’t perform that action at this time.
0 commit comments