Merge pull request #1154 from gregvonkuster/dev

Fix for re-installing an uninstalled TS repository with a dependency
This commit is contained in:
Martin Cech
2015-11-22 20:12:00 -05:00
+5
View File
@@ -511,6 +511,11 @@ def get_repository_for_dependency_relationship( app, tool_shed, name, owner, cha
name=name,
owner=owner,
changeset_revision=changeset_revision )
if not repository:
tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry( app, tool_shed )
repository_clone_url = os.path.join( tool_shed_url, 'repos', owner, name )
repo_info_tuple = (None, repository_clone_url, changeset_revision, None, owner, None, None)
repository, pcr = repository_was_previously_installed( app, tool_shed_url, name, repo_info_tuple )
if not repository:
# The received changeset_revision is no longer installable, so get the next changeset_revision
# in the repository's changelog in the tool shed that is associated with repository_metadata.