code: func (r *RepoFile) Update(re ...*Entry) {
  	for _, target := range re {
  		found := false
  		for j, repo := range r.Repositories {
  			if repo.Name == target.Name {
  				r.Repositories[j] = target
  				found = true
  				break
  			}
  		}
  		if !found {
  			r.Add(target)
  		}
  	}
  }
docs: // Update attempts to replace one or more repo entries in a repo file. If an
  // entry with the same name doesn't exist in the repo file it will add it.