func init() { packageCacheLocation = config.GetPackageCachePath() + "/" + repoIndixFile data, err := ioutil.ReadFile(packageCacheLocation) if os.IsNotExist(err) { allRepositories = DefaultRepositories() } else { handleErrorIfAny(err) } if allRepositories == nil { allRepositories, err = Deserialize(data) handleErrorIfAny(err) } }
// LocationOnDisk returns the physical location on disk // where this repository is being maintained func (r *Repository) LocationOnDisk() string { return config.GetPackageCachePath() + "/" + r.Name }