Fix recently introduced bug when the download_file action tag implementation was enhanced. This is related to installing tool dependencies along with a tool shed repository.

This commit is contained in:
Greg Von Kuster
2013-06-25 08:56:23 -04:00
parent f918bbc5ff
commit e68287be2f
@@ -194,7 +194,7 @@ def install_and_build_package( app, tool_dependency, actions_dict ):
# Download a single file to the working directory.
filtered_actions = actions[ 1: ]
url = action_dict[ 'url' ]
if action_dict[ 'target_filename' ]:
if 'target_filename' in action_dict:
# Sometimes compressed archives extracts their content to a folder other than the default defined file name. Using this
# attribute will ensure that the file name is set appropriately and can be located after download, decompression and extraction.
filename = action_dict[ 'target_filename' ]