Extend the make_directory action to create the specified directory under the current working directory if it is not prefixed with $INSTALL_DIR.

This commit is contained in:
Dave Bouvier
2013-10-01 11:51:58 -04:00
parent 3bbb04d808
commit d99a4bda60
@@ -272,7 +272,11 @@ def install_and_build_package( app, tool_dependency, actions_dict ):
with lcd( current_dir ):
action_type, action_dict = action_tup
if action_type == 'make_directory':
td_common_util.make_directory( full_path=action_dict[ 'full_path' ] )
if os.path.isabs( action_dict[ 'full_path' ] ):
full_path = action_dict[ 'full_path' ]
else:
full_path = os.path.join( current_dir, action_dict[ 'full_path' ] )
td_common_util.make_directory( full_path=full_path )
elif action_type == 'move_directory_files':
td_common_util.move_directory_files( current_dir=current_dir,
source_dir=os.path.join( action_dict[ 'source_directory' ] ),