commit/galaxy-central: dan: Fix for uninstalling a ToolShed tool repository revision with a tool with multiple versions installed not properly replacing with the still existing tool version in the tool panel.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/070086f7eb7f/ Changeset: 070086f7eb7f User: dan Date: 2014-02-25 23:36:59 Summary: Fix for uninstalling a ToolShed tool repository revision with a tool with multiple versions installed not properly replacing with the still existing tool version in the tool panel. Affected #: 1 file diff -r db5c4a4c9699f304ee1e18854a7f402b790353e6 -r 070086f7eb7f71ec4324eb9892a56a6028eb3628 lib/tool_shed/util/tool_util.py --- a/lib/tool_shed/util/tool_util.py +++ b/lib/tool_shed/util/tool_util.py @@ -1017,7 +1017,8 @@ replacement_tool_version = None # Since we are going to remove the tool from the section, replace it with the newest loaded version of the tool. for available_tool_version in available_tool_versions: - if available_tool_version.id in tool_section.elems.keys(): + available_tool_section_id, available_tool_section_name = available_tool_version.get_panel_section() + if available_tool_version.id in tool_section.elems.keys() or section_key == available_tool_section_id: replacement_tool_key = 'tool_%s' % str( available_tool_version.id ) replacement_tool_version = available_tool_version break @@ -1057,7 +1058,8 @@ replacement_tool_version = None # Since we are going to remove the tool from the section, replace it with the newest loaded version of the tool. for available_tool_version in available_tool_versions: - if available_tool_version.id in trans.app.toolbox.tool_panel.keys(): + available_tool_section_id, available_tool_section_name = available_tool_version.get_panel_section() + if available_tool_version.id in trans.app.toolbox.tool_panel.keys() or not available_tool_section_id: replacement_tool_key = 'tool_%s' % str( available_tool_version.id ) replacement_tool_version = available_tool_version break 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