// FetchRepo fetches the RPM repo at the u.URL baseurl to the local cache
// location
FetchRepo fetches the RPM repo at the u.URL baseurl to the local cache
location
// FetchRepo fetches the RPM repo at the u . URL baseurl to the local cache // location
func FetchRepo(u UInfo) error {
	repo := &pkginfo.Repo{
		URI:     fmt.Sprintf("%s/releases/%s/clear/x86_64/os/", u.URL, u.Ver),
		Name:    "clear",
		Version: u.Ver,
		Type:    "B",
	}
	helpers.PrintBegin("fetching repo from %s", repo.URI)
	path, err := pkginfo.DownloadRepoFiles(repo, u.Update)
	if err != nil {
		return err
	}
	err = pkginfo.ImportAllRPMs(repo, u.Update, path)
	if err != nil {
		return err
	}
	helpers.PrintComplete("repo cached at %s", path)
	return nil
}
func FetchRepo ( u UInfo ) error { repo := & pkginfo . Repo { URI : fmt . Sprintf ( " " , u . URL , u . Ver ) , Name : " " , Version : u . Ver , Type : " " , } helpers . PrintBegin ( " " , repo . URI ) path , err := pkginfo . DownloadRepoFiles ( repo , u . Update ) if err != nil { return err } err = pkginfo . ImportAllRPMs ( repo , u . Update , path ) if err != nil { return err } helpers . PrintComplete ( " " , path ) return nil }
FetchRepo fetches the RPM repo at the u.URL baseurl to the local cache
location
FetchRepo fetches the RPM repo at the u . URL baseurl to the local cache location