Fix for re-installing an uninstalled TS repository with a dependency

where both the repository and the dependency were updated in the TS
after the repository was uninstalled.
This commit is contained in:
Greg Von Kuster
2015-11-22 16:50:39 -05:00
parent 2e510bd5e1
commit a16cb06705
+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.