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 4242from opengrok_tools .deploy import deploy_war
4343from opengrok_tools .mirror import OPENGROK_NO_MIRROR_ENV
4444from opengrok_tools .sync import do_sync
45+ from opengrok_tools .utils .commandsequence import COMMAND_PROPERTY , ENV_PROPERTY
4546from opengrok_tools .utils .exitvals import SUCCESS_EXITVAL
4647from opengrok_tools .utils .indexer import Indexer
4748from opengrok_tools .utils .log import (
@@ -294,12 +295,14 @@ def merge_commands_env(commands, env):
294295 :param env: environment dictionary
295296 :return: updated commands structure
296297 """
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
303306
304307 return commands
305308
You can’t perform that action at this time.
0 commit comments