'This method is called when a Galaxy admin is getting updates for an installed tool shed
repository in order to cover the case where an existing tool dependency was changed (e.g.,
the version of the dependency was changed) but the tool version for which it is a dependency
was not changed.  In this case, we only want to determine if any of the dependency information
defined in original_dependency_dict was changed in new_dependency_dict.  We don\'t care if new
dependencies were added in new_dependency_dict since they will just be treated as missing
dependencies for the tool.'

def handle_existing_tool_dependencies_that_changed_in_update(self, repository, original_dependency_dict, new_dependency_dict):

    updated_tool_dependency_names = []
    deleted_tool_dependency_names = []
    for (original_dependency_key, original_dependency_val_dict) in original_dependency_dict.items():
        if (original_dependency_key not in new_dependency_dict):
            updated_tool_dependency = self.update_existing_tool_dependency(repository, original_dependency_val_dict, new_dependency_dict)
            if updated_tool_dependency:
                updated_tool_dependency_names.append(updated_tool_dependency.name)
            else:
                deleted_tool_dependency_names.append(original_dependency_val_dict['name'])
    return (updated_tool_dependency_names, deleted_tool_dependency_names)
