commit/galaxy-central: davebgx: Fix server error when attempting to update a repository that defines set_environment tool dependency types.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/61b4a993d39c/ Changeset: 61b4a993d39c Branch: stable User: davebgx Date: 2014-04-23 22:24:11 Summary: Fix server error when attempting to update a repository that defines set_environment tool dependency types. Affected #: 1 file diff -r 3b42725359224832317a066d95dff596f93ab33f -r 61b4a993d39c5341afea857859221a4f5b94334f templates/admin/tool_shed_repository/install_tool_dependencies_with_update.mako --- a/templates/admin/tool_shed_repository/install_tool_dependencies_with_update.mako +++ b/templates/admin/tool_shed_repository/install_tool_dependencies_with_update.mako @@ -56,16 +56,21 @@ %for key, requirements_dict in tool_dependencies_dict.items(): <% readme_text = None - key_items = key.split( '/' ) - key_name = key_items[ 0 ] - key_version = key_items[ 1 ] - readme_text = requirements_dict.get( 'readme', None ) - install_dir = os.path.join( trans.app.config.tool_dependency_dir, - key_name, - key_version, - repository.owner, - repository.name, - repository.installed_changeset_revision ) + if key == 'set_environment': + key_name = ', '.join( [ environment_variable[ 'name' ] for environment_variable in requirements_dict ] ) + key_version = '' + install_dir = '' + else: + key_items = key.split( '/' ) + key_name = key_items[ 0 ] + key_version = key_items[ 1 ] + readme_text = requirements_dict.get( 'readme', None ) + install_dir = os.path.join( trans.app.config.tool_dependency_dir, + key_name, + key_version, + repository.owner, + repository.name, + repository.installed_changeset_revision ) %> %if not os.path.exists( install_dir ): <tr> 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