From e68287be2f0451511cd65dec4053b03642023470 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Tue, 25 Jun 2013 08:56:23 -0400 Subject: [PATCH] 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. --- lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py b/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py index 060252305f1..bfbf4903441 100644 --- a/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py @@ -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' ]