commit/galaxy-central: devteam: Fix for generating metadata when a tool dependency definition sets multiple environment variables within a single <set_environment> tool dependency type.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/3f8e48526231/ Changeset: 3f8e48526231 User: devteam Date: 2014-05-02 18:50:57 Summary: Fix for generating metadata when a tool dependency definition sets multiple environment variables within a single <set_environment> tool dependency type. Affected #: 1 file diff -r 888cd02028b37f93beba8b175fec8c85a912ac9f -r 3f8e4852623187152ffaea5fd529fac2001c8316 lib/tool_shed/util/metadata_util.py --- a/lib/tool_shed/util/metadata_util.py +++ b/lib/tool_shed/util/metadata_util.py @@ -563,14 +563,11 @@ # <set_environment version="1.0"> # <environment_variable name="JAVA_JAR_PATH" action="set_to">$INSTALL_DIR</environment_variable> # </set_environment> - requirements_dict = {} for env_elem in elem: # <environment_variable name="JAVA_JAR_PATH" action="set_to">$INSTALL_DIR</environment_variable> env_name = env_elem.get( 'name', None ) if env_name: - requirements_dict[ 'name' ] = env_name - requirements_dict[ 'type' ] = 'set_environment' - if requirements_dict: + requirements_dict = dict( name=env_name, type='set_environment' ) if 'set_environment' in valid_tool_dependencies_dict: valid_tool_dependencies_dict[ 'set_environment' ].append( requirements_dict ) else: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org