def extract_components_from_tuple(repository_components_tuple):
 toolshed = repository_components_tuple[0]
 name = repository_components_tuple[1]
 owner = repository_components_tuple[2]
 changeset_revision = repository_components_tuple[3]
 components_list = [toolshed, name, owner, changeset_revision]
 if (len(repository_components_tuple) == 5):
  (toolshed, name, owner, changeset_revision, prior_installation_required) = repository_components_tuple
  components_list = [toolshed, name, owner, changeset_revision, prior_installation_required]
 elif (len(repository_components_tuple) == 6):
  (toolshed, name, owner, changeset_revision, prior_installation_required, only_if_compiling_contained_td) = repository_components_tuple
  components_list = [toolshed, name, owner, changeset_revision, prior_installation_required, only_if_compiling_contained_td]
 return components_list

def extract_components_from_tuple ( repository_components_tuple ) : toolshed = repository_components_tuple [ 0 ] name = repository_components_tuple [ 1 ] owner = repository_components_tuple [ 2 ] changeset_revision = repository_components_tuple [ 3 ] components_list = [ toolshed , name , owner , changeset_revision ] if ( len ( repository_components_tuple ) == 5 ) : ( toolshed , name , owner , changeset_revision , prior_installation_required ) = repository_components_tuple components_list = [ toolshed , name , owner , changeset_revision , prior_installation_required ] elif ( len ( repository_components_tuple ) == 6 ) : ( toolshed , name , owner , changeset_revision , prior_installation_required , only_if_compiling_contained_td ) = repository_components_tuple components_list = [ toolshed , name , owner , changeset_revision , prior_installation_required , only_if_compiling_contained_td ] return components_list
extract the repository components from the provided tuple in a backward-compatible manner .